Skip to content
Commit b224726d authored by Balbir Singh's avatar Balbir Singh Committed by Sagi Grimberg
Browse files

nvme-pci: Fix a race in controller removal



User space programs like udevd may try to read to partitions at the
same time the driver detects a namespace is unusable, and may deadlock
if revalidate_disk() is called while such a process is waiting to
enter the frozen queue. On detecting a dead namespace, move the disk
revalidate after unblocking dispatchers that may be holding bd_butex.

changelog Suggested-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarBalbir Singh <sblbir@amzn.com>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent 0ec64895
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment