]> git.baikalelectronics.ru Git - kernel.git/commit
dm: fix write same requests counting
authorAlasdair G Kergon <agk@redhat.com>
Thu, 31 Jan 2013 14:23:36 +0000 (14:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 31 Jan 2013 14:23:36 +0000 (14:23 +0000)
commitbd8b639add3403c7a5dfae6993a6250b52358c60
tree43f3facbed2274c5cec7df6ef2fc9ecdfa527f4c
parenta2dba9da59dc382c3204ff961acce36039fc74f3
dm: fix write same requests counting

When processing write same requests, fix dm to send the configured
number of WRITE SAME requests to the target rather than the number of
discards, which is not always the same.

Device-mapper WRITE SAME support was introduced by commit
53e4b0875f687402f8ada987da93423cf3ce01d6 ("dm: add WRITE SAME support").

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