]> bbs.cooldavid.org Git - net-next-2.6.git/commit
dm: use common __issue_target_request for flush and discard support
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Aug 2010 03:14:09 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:09 +0000 (04:14 +0100)
commit06a426cee9b35505aeb7516a67bd26496ca7ed08
tree008d8d20b667b195dbe7e53a53e5003aec0a0a5f
parent5ae89a8720c28caf35c4e53711d77df2856c404e
dm: use common __issue_target_request for flush and discard support

Rename __flush_target to __issue_target_request now that it is used to
issue both flush and discard requests.

Introduce __issue_target_requests as a convenient wrapper to
__issue_target_request 'num_flush_requests' or 'num_discard_requests'
times per target.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c