[PATCH] device-mapper: multipath: avoid infinite suspend requeueing
From: Alasdair G Kergon
Date: Tue Mar 01 2005 - 11:54:20 EST
Don't requeue I/O repeatedly if there are no paths left and the device
is in the process of being suspended, or else the suspend can never complete.
Reported-By: "goggin, edward" <egoggin@xxxxxxx>
Signed-Off-By: Alasdair G Kergon <agk@xxxxxxxxxx>
--- diff/drivers/md/dm-mpath.c 2005-03-01 16:20:56.000000000 +0000
+++ source/drivers/md/dm-mpath.c 2005-03-01 16:20:50.000000000 +0000
@@ -986,7 +986,7 @@
spin_lock(&m->lock);
if (!m->nr_valid_paths) {
- if (!m->queue_if_no_path) {
+ if (!m->queue_if_no_path || m->suspended) {
spin_unlock(&m->lock);
return -EIO;
} else {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/