]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dm: allow targets to require splitting WRITE_ZEROES and SECURE_ERASE
authorMike Snitzer <snitzer@kernel.org>
Fri, 14 Apr 2023 16:07:27 +0000 (12:07 -0400)
committerMike Snitzer <snitzer@kernel.org>
Fri, 14 Apr 2023 16:07:27 +0000 (12:07 -0400)
commit13f6facf3faeed34ca381aef4c9b153c7aed3972
tree5b178e7ae69f1c9b7c10e91fa20c1acfaee0631a
parent3664ff82dae1ef9f14f7763d3dd30565e7ef9e14
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: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm.c
include/linux/device-mapper.h