block: Remove unused member (busy) from struct blk_queue_tag
PATCH 1/1 block: Remove unused member (busy) from struct blk_queue_tag
Signed-off-by Ritesh Harjani <[email protected]>
--- include/linux/blkdev.h | 1 - 1 file changed, 1 deletion(-)
include/linux/blkdev.h +0 -1
@@ -288,7 +288,6 @@ enum blk_queue_state {struct blk_queue_tag {struct request **tag_index;/* map of busy tags */ unsigned long *tag_map;/* bit map of free/busy tags */ -int busy;/* current depth */ int max_depth;/* what we will send to device */ int real_max_depth;/* what the array can hold */ atomic_t refcnt;/* map can be shared */
Signature · 1 line
1.8.2.1
Quoted 11 lines · Ritesh Harjani
Signed-off-by Ritesh Harjani <[email protected]>--- include/linux/blkdev.h | 1 - 1 file changed, 1 deletion(-)include/linux/blkdev.h +0
-0
include/linux/blkdev.h enum blk_queue_state { · line 293
Quoted 7 lines
include/linux/blkdev.h +0
-1@@ -288,7 +288,6 @@ enum blk_queue_state {struct blk_queue_tag {struct request **tag_index;/* map of busy tags */ unsigned long *tag_map;/* bit map of free/busy tags */ -int busy;/* current depth */ int max_depth;/* what we will send to device */ int real_max_depth;/* what the array can hold */ atomic_t refcnt;/* map can be shared */
That's a good catch. Was this detected manually or did you use a tool to detect this? Anyway:
Reviewed-by Bart Van Assche <[email protected]>
Quoted 6 lines · Bart Van Assche
Quoted 5 lines · Ritesh Harjani
Signed-off-by Ritesh Harjani <[email protected]>--- include/linux/blkdev.h | 1 - 1 file changed, 1 deletion(-)
Quoted 16 lines
include/linux/blkdev.h enum blk_queue_state { · line 293
Quoted 13 lines
include/linux/blkdev.h +0
-1@@ -288,7 +288,6 @@ enum blk_queue_state {struct blk_queue_tag {struct request **tag_index;/* map of busy tags */ unsigned long *tag_map;/* bit map of free/busy tags */ -int busy;/* current depth */ int max_depth;/* what we will send to device */ int real_max_depth;/* what the array can hold */ atomic_t refcnt;/* map can be shared */ That's a good catch. Was this detected manually or did you use a tool to detect this? Anyway:
Manually, while I was reading this code.
Quoted 3 lines
Reviewed-by Bart Van Assche <[email protected]>
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 10 lines · Ritesh Harjani
Signed-off-by Ritesh Harjani <[email protected]>--- include/linux/blkdev.h | 1 - 1 file changed, 1 deletion(-)include/linux/blkdev.h +0
-0
include/linux/blkdev.h enum blk_queue_state { · line 293
Quoted 7 lines
include/linux/blkdev.h +0
-1@@ -288,7 +288,6 @@ enum blk_queue_state {struct blk_queue_tag {struct request **tag_index;/* map of busy tags */ unsigned long *tag_map;/* bit map of free/busy tags */ -int busy;/* current depth */ int max_depth;/* what we will send to device */ int real_max_depth;/* what the array can hold */ atomic_t refcnt;/* map can be shared */
Applied, thanks.
Signature · 1 line
Jens Axboe