umber-kernel/block
Luke Wang f15b4e9286 block: decouple secure erase size limit from discard size limit
[ Upstream commit ee81212f74a57c5d2b56cf504f40d528dac6faaf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:19:38 -05:00
..
partitions block: switch ->getgeo() to struct gendisk 2025-08-13 02:59:29 -04:00
Kconfig
Kconfig.iosched
Makefile
badblocks.c
bdev.c block: add __must_check attribute to sb_min_blocksize() 2025-11-05 14:00:16 +01:00
bfq-cgroup.c block,bfq: fix aux stat accumulation destination 2026-02-11 13:41:47 +01:00
bfq-iosched.c blk-mq-sched: unify elevators checking for async requests 2026-03-04 07:19:38 -05:00
bfq-iosched.h lib/sbitmap: convert shallow_depth from one word to the whole sbitmap 2025-08-07 06:30:17 -06:00
bfq-wf2q.c
bio-integrity-auto.c block: zero non-PI portion of auto integrity buffer 2026-01-23 11:21:16 +01:00
bio-integrity.c blk-integrity: enable p2p source and destination 2025-09-09 10:33:27 -06:00
bio.c block: rename bio_iov_iter_get_pages_aligned to bio_iov_iter_get_pages 2025-10-07 08:05:44 -06:00
blk-cgroup-fc-appid.c
blk-cgroup-rwstat.c
blk-cgroup-rwstat.h
blk-cgroup.c block: Remove elevator_lock usage from blkg_conf frozen operations 2025-10-15 08:00:19 -06:00
blk-cgroup.h block: initialize bio issue time in blk_mq_submit_bio() 2025-09-10 05:23:45 -06:00
blk-core.c for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
blk-crypto-fallback.c blk-crypto: convert to use bio_submit_split_bioset() 2025-09-10 05:23:46 -06:00
blk-crypto-internal.h
blk-crypto-profile.c
blk-crypto-sysfs.c
blk-crypto.c blk-crypto: use BLK_STS_INVAL for alignment errors 2025-10-30 08:52:57 -06:00
blk-flush.c
blk-ia-ranges.c
blk-integrity.c block: don't merge bios with different app_tags 2026-01-17 16:35:28 +01:00
blk-ioc.c copy_process: pass clone_flags as u64 across calltree 2025-09-01 15:31:34 +02:00
blk-iocost.c
blk-iolatency.c blk-mq: add QUEUE_FLAG_BIO_ISSUE_TIME 2025-09-10 05:23:45 -06:00
blk-ioprio.c
blk-ioprio.h
blk-lib.c block: fix memory leak in __blkdev_issue_zero_pages 2025-12-18 14:03:36 +01:00
blk-map.c block: rename bio_iov_iter_get_pages_aligned to bio_iov_iter_get_pages 2025-10-07 08:05:44 -06:00
blk-merge.c block: decouple secure erase size limit from discard size limit 2026-03-04 07:19:38 -05:00
blk-mq-cpumap.c blk-mq: add number of queue calc helper 2025-07-01 10:24:19 -06:00
blk-mq-debugfs.c blk-mq-debugfs: add missing debugfs_mutex in blk_mq_debugfs_register_hctxs() 2026-03-04 07:19:38 -05:00
blk-mq-debugfs.h
blk-mq-dma.c blk-mq-dma: bring back p2p request flags 2025-09-09 10:33:35 -06:00
blk-mq-sched.c block: use {alloc|free}_sched data methods 2026-01-02 12:56:51 +01:00
blk-mq-sched.h blk-mq-sched: unify elevators checking for async requests 2026-03-04 07:19:38 -05:00
blk-mq-sysfs.c blk-mq: Move flush queue allocation into blk_mq_init_hctx() 2025-09-08 08:05:32 -06:00
blk-mq-tag.c blk-mq: fix stale tag depth for shared sched tags in blk_mq_update_nr_requests() 2025-10-15 07:49:19 -06:00
blk-mq.c blk-mq: skip CPU offline notify on unmapped hctx 2026-01-08 10:16:52 +01:00
blk-mq.h blk-mq: fix stale tag depth for shared sched tags in blk_mq_update_nr_requests() 2025-10-15 07:49:19 -06:00
blk-pm.c
blk-pm.h
blk-rq-qos.c block: avoid cpu_hotplug_lock depedency on freeze_lock 2025-08-21 07:11:11 -06:00
blk-rq-qos.h block: validate QoS before calling __rq_qos_done_bio() 2025-08-26 10:34:08 -06:00
blk-settings.c block: validate pi_offset integrity limit 2026-01-17 16:35:33 +01:00
blk-stat.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
blk-stat.h
blk-sysfs.c block: Remove queue freezing from several sysfs store callbacks 2026-01-02 12:57:11 +01:00
blk-throttle.c block/blk-throttle: Fix throttle slice time for SSDs 2025-12-18 14:03:03 +01:00
blk-throttle.h blk-throttle: fix access race during throttle policy activation 2025-09-08 08:24:44 -06:00
blk-timeout.c
blk-wbt.c block: fix race between wbt_enable_default and IO submission 2026-01-02 12:56:51 +01:00
blk-wbt.h block: fix race between wbt_enable_default and IO submission 2026-01-02 12:56:51 +01:00
blk-zoned.c block: fix NULL pointer dereference in blk_zone_reset_all_bio_endio() 2026-01-08 10:17:21 +01:00
blk.h block: decouple secure erase size limit from discard size limit 2026-03-04 07:19:38 -05:00
bsg-lib.c
bsg.c
disk-events.c
early-lookup.c
elevator.c block: fix race between wbt_enable_default and IO submission 2026-01-02 12:56:51 +01:00
elevator.h block: fix race between wbt_enable_default and IO submission 2026-01-02 12:56:51 +01:00
fops.c block: move bio_iov_iter_get_bdev_pages to block/fops.c 2025-10-07 08:05:44 -06:00
genhd.c block: rate-limit capacity change info log 2026-01-02 12:57:08 +01:00
holder.c
ioctl.c for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
ioprio.c
kyber-iosched.c blk-mq-sched: unify elevators checking for async requests 2026-03-04 07:19:38 -05:00
mq-deadline.c blk-mq-sched: unify elevators checking for async requests 2026-03-04 07:19:38 -05:00
opal_proto.h
sed-opal.c
t10-pi.c block: rename tuple_size field in blk_integrity to metadata_size 2025-07-01 14:00:14 +02:00