On 5/5/25 7:47 PM, Ming Lei wrote: > Elevator switch code is another `nr_hw_queue` reader in non-fast-IO code > path, so it can't be done if updating `nr_hw_queues` is in-progress. > > Take same approach with not allowing add/del disk when updating > nr_hw_queues is in-progress, by grabbing read lock of > set->update_nr_hwq_sema. > > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> > Link: https://lore.kernel.org/linux-block/aAWv3NPtNIKKvJZc@fedora/ [1] > Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> > Closes: https://lore.kernel.org/linux-block/mz4t4tlwiqjijw3zvqnjb7ovvvaegkqganegmmlc567tt5xj67@xal5ro544cnc/ > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> Looks good to me: Reviewed-by: Nilay Shroff <nilay@xxxxxxxxxxxxx>