]> www.infradead.org Git - users/willy/xarray.git/commit
block: pass a gendisk to the queue_sysfs_entry methods
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Jun 2024 11:14:03 +0000 (13:14 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2024 21:06:16 +0000 (15:06 -0600)
commit62e35f942231e372f8e465d8484de66a60221226
tree1c22bfbdd8c49b580439a17a41363550e2bc29b5
parent319e8cfdf3caf41b98f50ef13542a35acd897bb6
block: pass a gendisk to the queue_sysfs_entry methods

The kobject for the queue entries is embedded into a struct gendisk.
Pass it to the sysfs methods instead of the request_queue derived from
it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240627111407.476276-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c
block/elevator.c
block/elevator.h