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.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -205,6 +205,11 @@ struct dm_target { · 204 unmodified lines | ||
| 205 | 205 | */ |
| 206 | 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 | 213 | /* target specific data */ |
| 209 | 214 | void *private; |
| 210 | 215 | |