Skip to contentSkip to conversation

blk-mq-debugfs: Add names for recently added flags

PATCH In review Bart Van Assche 3 participants 4 messages Aug 18, 2017 – Aug 25, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 blk-mq-debugfs: Add names for recently added flags

The symbolic constants QUEUE_FLAG_SCSI_PASSTHROUGH, QUEUE_FLAG_QUIESCED and REQ_NOWAIT are missing from blk-mq-debugfs.c. Add these to blk-mq-debugfs.c such that these appear as names in debugfs instead of as numbers.

Cc Omar Sandoval <[email protected]>
Cc Hannes Reinecke <[email protected]>

---

v2: changed "PASSTHROUGH" into "SCSI_PASSTHROUGH".

 block/blk-mq-debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
block/blk-mq-debugfs.c +3 -0
index e53b6129ca5a..980e73095643 100644
@@ -73,6 +73,8 @@ static const char *const blk_queue_flag_name[] = {
 	QUEUE_FLAG_NAME(STATS),
 	QUEUE_FLAG_NAME(POLL_STATS),
 	QUEUE_FLAG_NAME(REGISTERED),
+	QUEUE_FLAG_NAME(SCSI_PASSTHROUGH),
+	QUEUE_FLAG_NAME(QUIESCED),
 };
 #undef QUEUE_FLAG_NAME
 
@@ -263,6 +265,7 @@ static const char *const cmd_flag_name[] = {
 	CMD_FLAG_NAME(RAHEAD),
 	CMD_FLAG_NAME(BACKGROUND),
 	CMD_FLAG_NAME(NOUNMAP),
+	CMD_FLAG_NAME(NOWAIT),
 };
 #undef CMD_FLAG_NAME
 
Signature · 1 line
2.14.0
#1 lore raw

T24gRnJpLCAyMDE3LTA4LTE4IGF0IDE1OjUyIC0wNzAwLCBCYXJ0IFZhbiBBc3NjaGUgd3JvdGU6 DQo+IFRoZSBzeW1ib2xpYyBjb25zdGFudHMgUVVFVUVfRkxBR19TQ1NJX1BBU1NUSFJPVUdILCBR VUVVRV9GTEFHX1FVSUVTQ0VEDQo+IGFuZCBSRVFfTk9XQUlUIGFyZSBtaXNzaW5nIGZyb20gYmxr LW1xLWRlYnVnZnMuYy4gQWRkIHRoZXNlIHRvDQo+IGJsay1tcS1kZWJ1Z2ZzLmMgc3VjaCB0aGF0 IHRoZXNlIGFwcGVhciBhcyBuYW1lcyBpbiBkZWJ1Z2ZzIGluc3RlYWQgb2YNCj4gYXMgbnVtYmVy cy4NCg0KSGkgSmVucywNCg0KSGF2ZSB5b3UgYWxyZWFkeSBoYWQgdGhlIHRpbWUgdG8gaGF2ZSBh IGxvb2sgYXQgdGhpcyBwYXRjaD8NCg0KVGhhbmtzLA0KDQpCYXJ0Lg==

Reviewed-by
#2 lore raw
Quoted 6 lines · Bart Van Assche
Quoted 4 lines · Bart Van Assche

The symbolic constants QUEUE_FLAG_SCSI_PASSTHROUGH, QUEUE_FLAG_QUIESCED and REQ_NOWAIT are missing from blk-mq-debugfs.c. Add these to blk-mq-debugfs.c such that these appear as names in debugfs instead of as numbers.

Quoted 7 lines

Hi Jens,

Have you already had the time to have a look at this patch?

Thanks,

Bart.

FWIW

maintainer
#3 lore raw
In reply to Bart Van Assche
Quoted 4 lines · Bart Van Assche

The symbolic constants QUEUE_FLAG_SCSI_PASSTHROUGH, QUEUE_FLAG_QUIESCED and REQ_NOWAIT are missing from blk-mq-debugfs.c. Add these to blk-mq-debugfs.c such that these appear as names in debugfs instead of as numbers.

Added for 4.13, thanks.

Signature · 1 line
Jens Axboe