]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: add a store_limit operations for sysfs entries
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Jan 2025 05:47:13 +0000 (06:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 10 Jan 2025 14:29:23 +0000 (07:29 -0700)
commita16230649ce27f8ac7dd8a5b079d9657aa96de16
treefd4e0044cd01af6013cd1d3dd6e0053ef1b668de
parentd432c817c21a48c3baaa0d28e4d3e74b6aa238a0
block: add a store_limit operations for sysfs entries

De-duplicate the code for updating queue limits by adding a store_limit
method that allows having common code handle the actual queue limits
update.

Note that this is a pure refactoring patch and does not address the
existing freeze vs limits lock order problem in the refactored code,
which will be addressed next.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250110054726.1499538-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c