]> www.infradead.org Git - users/hch/block.git/commit
block: untangle request_queue refcounting from sysfs block-sysfs-cleanups
authorChristoph Hellwig <hch@lst.de>
Sat, 18 Jun 2022 14:30:13 +0000 (16:30 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 18 Jun 2022 14:30:13 +0000 (16:30 +0200)
commitd85c85c4da6a7795261519c895665c45e6dea954
treec25eb0dafedfa744be2fa461143f68ba10c3e2fd
parentceedefac0670e1040180553eaf80f842ae11811a
block: untangle request_queue refcounting from sysfs

The kobject embedded into the request_queue is used for the queue
directory in sysfs, but that is a child of the gendisks directory and is
intimately tied to it.  Move this kobject to the gendisk and use a
refcount_t in the request_queue for the actual request_queue refcounting
that is completely unrelated to the device model.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-core.c
block/blk-crypto-sysfs.c
block/blk-ia-ranges.c
block/blk-sysfs.c
block/blk.h
block/bsg.c
block/elevator.c
include/linux/blkdev.h