]> git.ipfire.org Git - thirdparty/linux.git/commit
block: decouple secure erase size limit from discard size limit
authorLuke Wang <ziniu.wang_1@nxp.com>
Wed, 4 Feb 2026 03:40:02 +0000 (11:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Feb 2026 03:42:12 +0000 (20:42 -0700)
commitee81212f74a57c5d2b56cf504f40d528dac6faaf
tree346e557fcefaa2565e979018235ed3594fb61e76
parentd4d78dd43cecaeaadb24e78927a4d6fda7d1f1d9
block: decouple secure erase size limit from discard size limit

Secure erase should use max_secure_erase_sectors instead of being limited
by max_discard_sectors. Separate the handling of REQ_OP_SECURE_ERASE from
REQ_OP_DISCARD to allow each operation to use its own size limit.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
block/blk.h