Skip to content
Commit 13f6facf authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm: allow targets to require splitting WRITE_ZEROES and SECURE_ERASE



Introduce max_write_zeroes_granularity and
max_secure_erase_granularity flags in the dm_target struct.

If a target sets these then DM core will split IO of these operation
types accordingly (in terms of max_write_zeroes_sectors and
max_secure_erase_sectors respectively).

Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 3664ff82
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment