lkml.org 
[lkml]   [2005]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.067 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site