]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: fix namespace removal list
authorKeith Busch <kbusch@kernel.org>
Thu, 13 Jun 2024 16:36:50 +0000 (09:36 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 13 Jun 2024 18:47:40 +0000 (11:47 -0700)
commitff0ffe5b7c3c12c6e0cca16652905963ae817b44
tree2d427b44fcf582d696aab914870ed1704b140884
parentcd0c1b8e045a8d2785342b385cb2684d9b48e426
nvme: fix namespace removal list

This function wants to move a subset of a list from one element to the
tail into another list. It also needs to use the srcu synchronize
instead of the regular rcu version. Do this one element at a time
because that's the only to do it.

Fixes: be647e2c76b27f4 ("nvme: use srcu for iterating namespace list")
Reported-by: Venkat Rao Bagalkote <venkat88@linux.vnet.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.vnet.ibm.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c