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>
This commit is contained in:
parent
9c5091f2ee
commit
d54eaa5a0f
2 changed files with 34 additions and 1 deletions
|
|
@ -205,6 +205,11 @@ struct dm_target {
|
|||
*/
|
||||
unsigned num_discard_requests;
|
||||
|
||||
/*
|
||||
* The number of WRITE SAME requests that will be submitted to the target.
|
||||
*/
|
||||
unsigned num_write_same_requests;
|
||||
|
||||
/* target specific data */
|
||||
void *private;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue