mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 11:05:53 -04:00
nvme-pci: do not directly handle subsys reset fallout
Scheduling reset_work after a nvme subsystem reset is expected to fail on pcie, but this also prevents potential handling the platform's pcie services may provide that might successfully recovering the link without re-enumeration. Such examples include AER, DPC, and power's EEH. Provide a pci specific operation that safely initiates a subsystem reset, and instead of scheduling reset work, read back the status register to trigger a pcie read error. Since this only affects pci, the other fabrics drivers subscribe to a generic nvmf subsystem reset that is exactly the same as before. The loop fabric doesn't use it because nvmet doesn't support setting that property anyway. And since we're using the magic NSSR value in two places now, provide a symbolic define for it. Reported-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
|
||||
#define NVME_NSID_ALL 0xffffffff
|
||||
|
||||
/* Special NSSR value, 'NVMe' */
|
||||
#define NVME_SUBSYS_RESET 0x4E564D65
|
||||
|
||||
enum nvme_subsys_type {
|
||||
/* Referral to another discovery type target subsystem */
|
||||
NVME_NQN_DISC = 1,
|
||||
|
||||
Reference in New Issue
Block a user