block: only allocate poll_stats if there's a user of them
authorJens Axboe <axboe@kernel.dk>
Sat, 13 Nov 2021 21:03:26 +0000 (14:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:38:35 +0000 (06:38 -0700)
commit48b5c1fbcd8c5bc6b91a56399a5257b801391dd8
treeca7326ec1b162e4e8cc3701ea620b6b13012798b
parent25c4b5e058578066db56d757ad3a7adeaff35856
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>
block/blk-mq-debugfs.c
block/blk-mq.c
block/blk-stat.c
block/blk-stat.h
block/blk-sysfs.c
include/linux/blkdev.h