]> www.infradead.org Git - users/hch/block.git/commit
loop: use the atomic queue limits update API blk-limits-base
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Dec 2023 18:37:30 +0000 (18:37 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 Feb 2024 06:26:40 +0000 (07:26 +0100)
commit32f476fe4ef24165a2335721d67e775f14f75d25
tree3292c4df68c7f931edcb270433dd8b7c59b6f136
parent4836d5478c3c1706698ec383d37b9b3aba5cfd5a
loop: use the atomic queue limits update API

Pass the default limits to blk_mq_alloc_disk and then use the
queue_limits_{start,commit}_update API to change the limits in an
atomic way on existing loop gendisks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
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: Hannes Reinecke <hare@suse.de>
drivers/block/loop.c