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" <[EMAIL PROTECTED]>
Signed-Off-By: Alasdair G Kergon <[EMAIL PROTECTED]>
--- 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to