aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2025-09-10 16:04:36 +0800
committerJens Axboe <axboe@kernel.dk>2025-09-10 05:25:56 -0600
commitdc1dd13d44fa4e4d466476c0f3517c1230c237e4 (patch)
treec9cd87e021a30124e5130f1c6583675e51154f89 /block
parentublk: consolidate nr_io_ready and nr_queues_ready (diff)
downloadlinux-dc1dd13d44fa4e4d466476c0f3517c1230c237e4.tar.gz
linux-dc1dd13d44fa4e4d466476c0f3517c1230c237e4.zip
blk-mq: remove useless checking in queue_requests_store()
blk_mq_queue_attr_visible() already checked queue_is_mq(), no need to check this again in queue_requests_store(). Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-sysfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index c94b8b6ab024..1ffa65feca4f 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -69,9 +69,6 @@ queue_requests_store(struct gendisk *disk, const char *page, size_t count)
unsigned int memflags;
struct request_queue *q = disk->queue;
- if (!queue_is_mq(q))
- return -EINVAL;
-
ret = queue_var_store(&nr, page, count);
if (ret < 0)
return ret;