]> git.baikalelectronics.ru Git - kernel.git/commit
block: return -ENODEV for BLK_STS_OFFLINE
authorSong Liu <song@kernel.org>
Thu, 3 Feb 2022 19:28:26 +0000 (11:28 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 04:10:00 +0000 (21:10 -0700)
commitf9f2437c6cc32c65d4e546cf55ce974e962fffdc
tree4ae6512492c2f828ce60fe2fb59b0875289bce4c
parent675fda7a5085b9f8e64e410fd5b0fa11fe174a35
block: return -ENODEV for BLK_STS_OFFLINE

Change the user visible return value for BLK_STS_OFFLINE to -ENODEV, which
is more descriptive than existing -EIO.

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-3-song@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c