Skip to contentSkip to conversation

block: Remove unused member (busy) from struct blk_queue_tag

PATCH Applied Ritesh Harjani 3 participants 4 messages Dec 16, 2016 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Remove unused member (busy) from struct blk_queue_tag

---
 include/linux/blkdev.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/blkdev.h +0 -1
index 286b2a2..8369564 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Ritesh Harjani
---
 include/linux/blkdev.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/blkdev.h +0 -0
index 286b2a2..8369564 100644

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:

#2 lore raw
Quoted 6 lines · Bart Van Assche
Quoted 5 lines · Ritesh Harjani
---
 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
index 286b2a2..8369564 100644
@@ -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
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
maintainer Applied
#3 lore raw
In reply to Ritesh Harjani
Quoted 10 lines · Ritesh Harjani
---
 include/linux/blkdev.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/blkdev.h +0 -0
index 286b2a2..8369564 100644

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