On 6/2/22 23:55, Mike Christie wrote:
BLK_STS_NEXUS is used for nvme/scsi reservation conflicts and also
general nexus failures. For the pr_ops use we want to know if an IO failed
for specifically a reservation conflict so we can report that error upwards
to a VM. This patch adds a new error code for this case and converts nvme.
The next patch converts scsi because it's a little more complicated.
Signed-off-by: Mike Christie <michael.chris...@oracle.com>
---
block/blk-core.c | 1 +
drivers/nvme/host/core.c | 2 +-
include/linux/blk_types.h | 4 ++++
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/block/blk-core.c b/block/blk-core.c
index bc0506772152..3908ac4a70b6 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -171,6 +171,7 @@ static const struct {
/* zone device specific errors */
[BLK_STS_ZONE_OPEN_RESOURCE] = { -ETOOMANYREFS, "open zones
exceeded" },
[BLK_STS_ZONE_ACTIVE_RESOURCE] = { -EOVERFLOW, "active zones exceeded"
},
+ [BLK_STS_RSV_CONFLICT] = { -EBADE, "resevation conflict" },
^^^^^^^^^^
Please fix the spelling of "reservation".
Thanks,
Bart.
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel