]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9086959a4d1f8f0941c0b85d9bc423474bbe54e3
treeca7326ec1b162e4e8cc3701ea620b6b13012798b
parentd61eee43deb02080693651e9fb7d01833faab403
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