block: Drop leftover references to RQF_SORTED
PATCH 1/1 block: Drop leftover references to RQF_SORTED
Commit a1ce35fa49852db60fc6e268038530be533c5b15 ("block: remove dead elevator code") removed all users of RQF_SORTED. However it is still defined, and there is one reference left to it (which in effect is dead code). Clear it all up.
--- block/blk-mq-debugfs.c | 1 - block/blk-mq-sched.c | 3 --- include/linux/blkdev.h | 2 -- 3 files changed, 6 deletions(-)
block/blk-mq-sched.c +0 -3
@@ -408,9 +408,6 @@ static bool blk_mq_sched_bypass_insert(sif ((rq->rq_flags &RQF_FLUSH_SEQ ) ||blk_rq_is_passthrough (rq))return true; -if (has_sched) - rq->rq_flags |=RQF_SORTED ; -return false; }
include/linux/blkdev.h +0 -2
@@ -65,8 +65,6 @@ typedef void (rq_end_io_fn)(struct reque* request flags */ typedef __u32 __bitwise req_flags_t ; -/* elevator knows about this request */ -#define RQF_SORTED ((__force req_flags_t)(1 << 0))/* drive already may have started this one */ #define RQF_STARTED ((__force req_flags_t)(1 << 1))/* may not be passed by ioscheduler */
block/blk-mq-debugfs.c +0 -1
@@ -292,7 +292,6 @@ static const char *const cmd_flag_name[]#define RQF_NAME (name) [ilog2((__force u32)RQF_##name)] = #namestatic const char *const rqf_name[] = { -RQF_NAME (SORTED ),RQF_NAME (STARTED ),RQF_NAME (SOFTBARRIER ),RQF_NAME (FLUSH_SEQ ),
Signature · 2 lines
Jean Delvare SUSE L3 Support
Jens Axboe
maintainerQuoted 19 lines · Jean Delvare
Commit
a1ce35fa49852db60fc6e268038530be533c5b15("block: remove dead elevator code") removed all users ofRQF_SORTED. However it is still defined, and there is one reference left to it (which in effect is dead code). Clear it all up.Signed-off-by Jean Delvare <[email protected]>Cc Jens Axboe <[email protected]>Cc Ming Lei <[email protected]>Cc Omar Sandoval <[email protected]>Cc Hannes Reinecke <[email protected]>--- block/blk-mq-debugfs.c | 1 - block/blk-mq-sched.c | 3 --- include/linux/blkdev.h | 2 -- 3 files changed, 6 deletions(-)
block/blk-mq-sched.c static bool blk_mq_sched_bypass_insert(s · line 412
Quoted 8 lines
block/blk-mq-sched.c +0
-3@@ -408,9 +408,6 @@ static bool blk_mq_sched_bypass_insert(sif ((rq->rq_flags &RQF_FLUSH_SEQ ) ||blk_rq_is_passthrough (rq))return true; -if (has_sched) - rq->rq_flags |=RQF_SORTED ; -return false; }
Since that's the only reason why we are passing in 'has_sched', you should kill that argument as well from the function and the single caller.
Signature · 1 line
Jens Axboe
Hi Jens,
Quoted 23 lines · Jens Axboe
Quoted 22 lines · Jean Delvare
Commit
a1ce35fa49852db60fc6e268038530be533c5b15("block: remove dead elevator code") removed all users ofRQF_SORTED. However it is still defined, and there is one reference left to it (which in effect is dead code). Clear it all up.Signed-off-by Jean Delvare <[email protected]>Cc Jens Axboe <[email protected]>Cc Ming Lei <[email protected]>Cc Omar Sandoval <[email protected]>Cc Hannes Reinecke <[email protected]>--- block/blk-mq-debugfs.c | 1 - block/blk-mq-sched.c | 3 --- include/linux/blkdev.h | 2 -- 3 files changed, 6 deletions(-)block/blk-mq-sched.c +0
-0@@ -408,9 +408,6 @@ static bool blk_mq_sched_bypass_insert(sif ((rq->rq_flags &RQF_FLUSH_SEQ ) ||blk_rq_is_passthrough (rq))return true;
Quoted 8 lines
block/blk-mq-sched.c static bool blk_mq_sched_bypass_insert(s · line 412
Quoted 5 lines
block/blk-mq-sched.c +0
-3-if (has_sched) - rq->rq_flags |=RQF_SORTED ; -return false; }Since that's the only reason why we are passing in '
has_sched', you should kill that argument as well from the function and the single caller.
Sorry, missed that. Surprised the compiler didn't warn.
I'll post a v2 shortly.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 44 lines · Jean Delvare
Commit
a1ce35fa49852db60fc6e268038530be533c5b15("block: remove dead elevator code") removed all users ofRQF_SORTED. However it is still defined, and there is one reference left to it (which in effect is dead code). Clear it all up.Signed-off-by Jean Delvare <[email protected]>Cc Jens Axboe <[email protected]>Cc Ming Lei <[email protected]>Cc Omar Sandoval <[email protected]>Cc Hannes Reinecke <[email protected]>--- block/blk-mq-debugfs.c | 1 - block/blk-mq-sched.c | 3 --- include/linux/blkdev.h | 2 -- 3 files changed, 6 deletions(-)block/blk-mq-sched.c +0
-3@@ -408,9 +408,6 @@ static bool blk_mq_sched_bypass_insert(sif ((rq->rq_flags &RQF_FLUSH_SEQ ) ||blk_rq_is_passthrough (rq))return true; -if (has_sched) - rq->rq_flags |=RQF_SORTED ; -return false; }include/linux/blkdev.h +0
-2@@ -65,8 +65,6 @@ typedef void (rq_end_io_fn)(struct reque* request flags */ typedef __u32 __bitwise req_flags_t ; -/* elevator knows about this request */ -#define RQF_SORTED ((__force req_flags_t)(1 << 0))/* drive already may have started this one */ #define RQF_STARTED ((__force req_flags_t)(1 << 1))/* may not be passed by ioscheduler */
block/blk-mq-debugfs.c static const char *const cmd_flag_name[] · line 297
Quoted 7 lines
block/blk-mq-debugfs.c +0
-1@@ -292,7 +292,6 @@ static const char *const cmd_flag_name[]#define RQF_NAME (name) [ilog2((__force u32)RQF_##name)] = #namestatic const char *const rqf_name[] = { -RQF_NAME (SORTED ),RQF_NAME (STARTED ),RQF_NAME (SOFTBARRIER ),RQF_NAME (FLUSH_SEQ ),
Cheers,
Hannes
Signature · 4 lines
Dr. Hannes Reinecke Kernel Storage Architect [email protected] +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer