]> git.baikalelectronics.ru Git - kernel.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)
commit154dfd35ba63723aa2ef1168db1283baac391796
tree008d8d20b667b195dbe7e53a53e5003aec0a0a5f
parent11dd8cfac076e4e0e3e2ad96996b6d61185cd541
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