diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-11-13 14:03:26 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-29 06:38:35 -0700 |
commit | 48b5c1fbcd8c5bc6b91a56399a5257b801391dd8 (patch) | |
tree | ca7326ec1b162e4e8cc3701ea620b6b13012798b /block/blk-mq-debugfs.c | |
parent | 25c4b5e058578066db56d757ad3a7adeaff35856 (diff) | |
download | linux-riscv-48b5c1fbcd8c5bc6b91a56399a5257b801391dd8.tar.gz linux-riscv-48b5c1fbcd8c5bc6b91a56399a5257b801391dd8.tar.bz2 linux-riscv-48b5c1fbcd8c5bc6b91a56399a5257b801391dd8.zip |
block: only allocate poll_stats if there's a user of them
This is essentially never used, yet it's about 1/3rd of the total
queue size. Allocate it when needed, and don't embed it in the queue.
Kill the queue flag for this while at it, since we can just check the
assigned pointer now.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-debugfs.c')
-rw-r--r-- | block/blk-mq-debugfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 4f2cf8399f3d..f4022b198580 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -122,7 +122,6 @@ static const char *const blk_queue_flag_name[] = { QUEUE_FLAG_NAME(FUA), QUEUE_FLAG_NAME(DAX), QUEUE_FLAG_NAME(STATS), - QUEUE_FLAG_NAME(POLL_STATS), QUEUE_FLAG_NAME(REGISTERED), QUEUE_FLAG_NAME(QUIESCED), QUEUE_FLAG_NAME(PCI_P2PDMA), |