linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] block/scsi/nvme: Add error codes for PR ops
@ 2022-11-15 21:28 Mike Christie
  2022-11-15 21:28 ` [PATCH v2 1/4] block: Add error codes for common PR failures Mike Christie
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Mike Christie @ 2022-11-15 21:28 UTC (permalink / raw)
  To: kbusch, axboe, hch, sagi, martin.petersen, jejb, linux-scsi,
	linux-nvme, linux-block

The following patches were made over Linus's tree and allow the PR/pr_ops
users to handle errors without having to know the device type and also
for SCSI handle devices that require the sense code. Currently, we return
a -Exyz type of error code if the PR call fails before the drivers can
send the command and a device specific error code if it's queued. The
problem is that the callers don't always know the device type so they
can't check for specific errors like reservation conflicts, or transport
errors or invalid operations.

These patches add common error codes which callers can check for.

v2:
- Drop PR_STS_OP_NOT_SUPP and PR_STS_OP_INVALID.
- Drop dependence on scsi_exeucte patchset and include status_byte
patch in this patchset.
- Check for all nvme path errors with nvme_is_path_error.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-11-16  6:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 21:28 [PATCH v2 0/4] block/scsi/nvme: Add error codes for PR ops Mike Christie
2022-11-15 21:28 ` [PATCH v2 1/4] block: Add error codes for common PR failures Mike Christie
2022-11-16  0:59   ` Chaitanya Kulkarni
2022-11-16  6:38   ` Christoph Hellwig
2022-11-15 21:28 ` [PATCH v2 2/4] scsi: Rename status_byte to sg_status_byte Mike Christie
2022-11-16  1:00   ` Chaitanya Kulkarni
2022-11-16  6:39   ` Christoph Hellwig
2022-11-15 21:28 ` [PATCH v2 3/4] scsi: Convert SCSI errors to PR errors Mike Christie
2022-11-16  1:01   ` Chaitanya Kulkarni
2022-11-15 21:28 ` [PATCH v2 4/4] nvme: Convert NVMe " Mike Christie
2022-11-16  1:09   ` Chaitanya Kulkarni
2022-11-16  6:40   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).