projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9111e56
)
nvme/multipath: Use blk_path_error
author
Keith Busch
<
[email protected]
>
Tue, 9 Jan 2018 19:04:17 +0000
(12:04 -0700)
committer
Jens Axboe
<
[email protected]
>
Wed, 10 Jan 2018 17:52:18 +0000
(10:52 -0700)
Uses common code for determining if an error should be retried on
alternate path.
Acked-by: Mike Snitzer <
[email protected]
>
Reviewed-by: Hannes Reinecke <
[email protected]
>
Signed-off-by: Keith Busch <
[email protected]
>
Reviewed-by: Johannes Thumshirn <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
drivers/nvme/host/multipath.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/multipath.c
b/drivers/nvme/host/multipath.c
index ae9abb600c0f3265a259eb793cee51877cc78891..3b211d9e58b8419855b29a87f1019b0d687714d4 100644
(file)
--- a/
drivers/nvme/host/multipath.c
+++ b/
drivers/nvme/host/multipath.c
@@
-37,19
+37,7
@@
bool nvme_req_needs_failover(struct request *req, blk_status_t error)
{
if (!(req->cmd_flags & REQ_NVME_MPATH))
return false;
-
- switch (error) {
- case BLK_STS_NOTSUPP:
- case BLK_STS_NOSPC:
- case BLK_STS_TARGET:
- case BLK_STS_NEXUS:
- case BLK_STS_MEDIUM:
- case BLK_STS_PROTECTION:
- return false;
- }
-
- /* Everything else could be a path failure, so should be retried */
- return true;
+ return blk_path_error(error);
}
void nvme_kick_requeue_lists(struct nvme_ctrl *ctrl)