HomeFreeBSD

cam_periph: Return ENXIO when peripheral is invalidated

Description

cam_periph: Return ENXIO when peripheral is invalidated

When the peripheral is invalidated, no further I/O is possible. Signal
this up the stack with ENXIO now that upper layers of the stack
differentiate sometimes. In order for there to be further I/O, and new
open is required for any block device that a future periph might
instantiate for devices at this location that might return or otherwise
become available. The I/O scheduler flushes its I/O with the ENXIO error
for pending I/O that didn't make it to the device, so this makes the two
paths match.

MFC After: 3 days
Sponsored by: Netflix
Reviewed by: chs, mav
Differential Revision: https://reviews.freebsd.org/D35093

Details

Provenance
impAuthored on Apr 28 2022, 10:29 PM
Reviewer
chs
Differential Revision
D35093: cam_periph: Return ENXIO when peripheral is invalidated
Parents
rGca420b4ef2ce: mpr/mps: when sending reset on removal, include target in message
Branches
Unknown
Tags
Unknown