]> www.infradead.org Git - users/hch/block.git/commit
dm: make dm_set_zones_restrictions work on the queue limits block-limits-fixes
authorChristoph Hellwig <hch@lst.de>
Fri, 24 May 2024 13:40:25 +0000 (15:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 27 May 2024 12:27:34 +0000 (14:27 +0200)
commitf7aa8952c4af6198a1d3f6ad1f1f21cb75721c78
tree41dfe1bf3c7bd73e412404ebe3924632199afead
parent7eaf637fc3b0098c57428130cda084447b830be3
dm: make dm_set_zones_restrictions work on the queue limits

Don't stuff the values directly into the queue without any
synchronization, but instead delay applying the queue limits in
the caller and let dm_set_zones_restrictions work on the limit
structure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
drivers/md/dm-table.c
drivers/md/dm-zone.c
drivers/md/dm.h