diff options
| author | Nilay Shroff <[email protected]> | 2024-04-25 14:03:00 +0000 |
|---|---|---|
| committer | Keith Busch <[email protected]> | 2024-05-01 09:58:42 +0000 |
| commit | 25bb3534ee21e39eb9301c4edd7182eb83cb0d07 (patch) | |
| tree | 5ae73be06b823123055492e1ec7ec72b27b641e4 /arch/powerpc/lib/code-patching.c | |
| parent | nvmet-auth: replace pr_debug() with pr_err() to report an error. (diff) | |
| download | kernel-25bb3534ee21e39eb9301c4edd7182eb83cb0d07.tar.gz kernel-25bb3534ee21e39eb9301c4edd7182eb83cb0d07.zip | |
nvme: cancel pending I/O if nvme controller is in terminal state
While I/O is running, if the pci bus error occurs then
in-flight I/O can not complete. Worst, if at this time,
user (logically) hot-unplug the nvme disk then the
nvme_remove() code path can't forward progress until
in-flight I/O is cancelled. So these sequence of events
may potentially hang hot-unplug code path indefinitely.
This patch helps cancel the pending/in-flight I/O from the
nvme request timeout handler in case the nvme controller
is in the terminal (DEAD/DELETING/DELETING_NOIO) state and
that helps nvme_remove() code path forward progress and
finish successfully.
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Nilay Shroff <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
