Commit 1b95e81
nvme: fix possible hang when removing a controller during error recovery
Error recovery can be interrupted by controller removal, then the
controller is left as quiesced, and IO hang can be caused.
Fix the issue by unquiescing controller unconditionally when removing
namespaces.
This way is reasonable and safe given forward progress can be made
when removing namespaces.
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reported-by: Chunguang Xu <brookxu.cn@gmail.com>
Closes: https://lore.kernel.org/linux-nvme/cover.1685350577.git.chunguang.xu@shopee.com/
Cc: stable@vger.kernel.org
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent b8f6446 commit 1b95e81
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3933 | 3933 | | |
3934 | 3934 | | |
3935 | 3935 | | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
3936 | 3942 | | |
3937 | 3943 | | |
3938 | 3944 | | |
| |||
3942 | 3948 | | |
3943 | 3949 | | |
3944 | 3950 | | |
3945 | | - | |
| 3951 | + | |
3946 | 3952 | | |
3947 | | - | |
3948 | | - | |
3949 | 3953 | | |
3950 | 3954 | | |
3951 | 3955 | | |
| |||
0 commit comments