mbox series

[0/3] block/scsi/nvme: Add error codes for PR ops

Message ID 20221109031106.201324-1-michael.christie@oracle.com
Headers show
Series block/scsi/nvme: Add error codes for PR ops | expand

Message

Mike Christie Nov. 9, 2022, 3:11 a.m. UTC
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.