dm: prepare to support WRITE SAME
authorMike Snitzer <snitzer@redhat.com>
Fri, 21 Dec 2012 20:23:36 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:36 +0000 (20:23 +0000)
commitd54eaa5a0fde0a202e4e91f200f818edcef15bee
treebb40893166dc8cd1d0f84c8087d021b66774a007
parent9c5091f2eeeffe5eca2ffe8a1bc28d312c8a5083
dm: prepare to support WRITE SAME

Allow targets to opt in to WRITE SAME support by setting
'num_write_same_requests' in the dm_target structure.

A dm device will only advertise WRITE SAME support if all its
targets and all its underlying devices support it.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
include/linux/device-mapper.h