CC linux-block (it was a typo in the original email) On Wed, Feb 2, 2022 at 10:40 PM Song Liu <song@xxxxxxxxxx> wrote: > > The new error message for such case looks like > > [ 172.809565] device offline error, dev sda, sector 3138208 ... > > which will not be confused with regular I/O error (BLK_STS_IOERR). > > Signed-off-by: Song Liu <song@xxxxxxxxxx> > --- > drivers/scsi/scsi_lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index 0a70aa763a96..e30bc51578e9 100644 > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -1276,7 +1276,7 @@ scsi_device_state_check(struct scsi_device *sdev, struct request *req) > * power management commands. > */ > if (req && !(req->rq_flags & RQF_PM)) > - return BLK_STS_IOERR; > + return BLK_STS_OFFLINE; > return BLK_STS_OK; > } > } > -- > 2.30.2 >