dm thin: split discards on block boundary
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 27 Jul 2012 14:08:03 +0000 (15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:03 +0000 (15:08 +0100)
commit4929630901100fdbfa19186ecf5ea2706f57719b
treed12aaec9ccae4fb91eb55271fc8f987db0bbce96
parent7acf0277cea0f2da89ffffcc9892bea23f618e63
dm thin: split discards on block boundary

This patch sets the variable "ti->split_discard_requests" for the dm thin
target so that device mapper core splits discard requests on a block
boundary.

Consequently, a discard request that spans multiple blocks is never sent
to dm-thin. The patch also removes some code in process_discard that
deals with discards that span multiple blocks.

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