Messages in this thread Patch in this message | | | Date | Tue, 1 Mar 2005 16:46:05 +0000 | From | Alasdair G Kergon <> | Subject | [PATCH] device-mapper: multipath: avoid infinite suspend requeueing |
| |
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@emc.com> Signed-Off-By: Alasdair G Kergon <agk@redhat.com> --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |