]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c8ee6b1554ece18e39c2c20186382a72dc5997f
treebb40893166dc8cd1d0f84c8087d021b66774a007
parent50c2f5e495a2a6612d54d1a003c3726c77f03141
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