Searched hist:"23508 a96cd2e857d57044a2ed7d305f2d9daf441" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm.c | diff fe7af2d3babefabd96a39e8b0d58ede88f3c7993 Thu Jan 31 08:23:36 CST 2013 Alasdair G Kergon <agk@redhat.com> 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 23508a96cd2e857d57044a2ed7d305f2d9daf441 ("dm: add WRITE SAME support").
Signed-off-by: Alasdair G Kergon <agk@redhat.com> Acked-by: Mike Snitzer <snitzer@redhat.com> diff 23508a96cd2e857d57044a2ed7d305f2d9daf441 Fri Dec 21 14:23:37 CST 2012 Mike Snitzer <snitzer@redhat.com> dm: add WRITE SAME support
WRITE SAME bios have a payload that contain a single page. When cloning WRITE SAME bios DM has no need to modify the bi_io_vec attributes (and doing so would be detrimental). DM need only alter the start and end of the WRITE SAME bio accordingly.
Rather than duplicate __clone_and_map_discard, factor out a common function that is also used by __clone_and_map_write_same.
Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
|