diff options
| author | Mike Snitzer <snitzer@redhat.com> | 2012-12-21 15:23:36 -0500 |
|---|---|---|
| committer | Alasdair G Kergon <agk@redhat.com> | 2012-12-21 15:23:36 -0500 |
| commit | d54eaa5a0fde0a202e4e91f200f818edcef15bee (patch) | |
| tree | bb40893166dc8cd1d0f84c8087d021b66774a007 /include/linux | |
| parent | 9c5091f2eeeffe5eca2ffe8a1bc28d312c8a5083 (diff) | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device-mapper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 38d27a10aa5..d1f6cd8486f 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
| @@ -205,6 +205,11 @@ struct dm_target { | |||
| 205 | */ | 205 | */ |
| 206 | unsigned num_discard_requests; | 206 | unsigned num_discard_requests; |
| 207 | 207 | ||
| 208 | /* | ||
| 209 | * The number of WRITE SAME requests that will be submitted to the target. | ||
| 210 | */ | ||
| 211 | unsigned num_write_same_requests; | ||
| 212 | |||
| 208 | /* target specific data */ | 213 | /* target specific data */ |
| 209 | void *private; | 214 | void *private; |
| 210 | 215 | ||
