]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: use BLK_STS_OFFLINE for not fully online devices
authorSong Liu <song@kernel.org>
Thu, 3 Feb 2022 19:28:27 +0000 (11:28 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 04:10:01 +0000 (21:10 -0700)
commit7499e1f0dfe18740d74287ed09e10ec45d6d67af
treef302a80620b0210b15058e402cb53a260e98bbbd
parentf9f2437c6cc32c65d4e546cf55ce974e962fffdc
scsi: use BLK_STS_OFFLINE for not fully online devices

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).

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Song Liu <song@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220203192827.1370270-4-song@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_lib.c