]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: do not fail path on -ENOSPC
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Fri, 13 Sep 2013 05:54:30 +0000 (14:54 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 18 Sep 2013 18:41:06 +0000 (14:41 -0400)
commitb360263705535d6841a0ae7c09eeda928f9d386b
tree12ec2ac2b8855bcc189e7135ee9530995fbede77
parent5667ee2a76214eb1f98d5ba5c60e1a9aa3440b67
dm mpath: do not fail path on -ENOSPC

Since ENOSPC is a target-side error, dm-mpath should just pass the error
information to upper layer instead of retrying itself with path failover.
Otherwise it will end up failing all paths down while path checkers find
all paths ok.

ENOSPC can now be returned from SCSI device after commit 4a5f3083
("[SCSI] return ENOSPC on thin provisioning failure").

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c