projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2651bf6
)
block: return -ENODEV for BLK_STS_OFFLINE
author
Song Liu
<song@kernel.org>
Thu, 3 Feb 2022 19:28:26 +0000
(11:28 -0800)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 4 Feb 2022 04:10:00 +0000
(21:10 -0700)
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
patch
|
blob
|
history
diff --git
a/block/blk-core.c
b/block/blk-core.c
index 24035dd2eef174d4d806cab5d77d436e38e6dcb4..be8812f5489d47dc6c818d552f972a47d26eab1e 100644
(file)
--- a/
block/blk-core.c
+++ b/
block/blk-core.c
@@
-164,7
+164,7
@@
static const struct {
[BLK_STS_RESOURCE] = { -ENOMEM, "kernel resource" },
[BLK_STS_DEV_RESOURCE] = { -EBUSY, "device resource" },
[BLK_STS_AGAIN] = { -EAGAIN, "nonblocking retry" },
- [BLK_STS_OFFLINE] = { -E
IO,
"device offline" },
+ [BLK_STS_OFFLINE] = { -E
NODEV,
"device offline" },
/* device mapper special case, should not leak out: */
[BLK_STS_DM_REQUEUE] = { -EREMCHG, "dm internal retry" },