svn commit: r226985 - head/sys/geom

[ Available lists | Index of svn-src-all | Month of Nov 2011 | Week of 1 Nov 2011 | Raw email | View thread | Wrap long lines | Reply ]
From
Alexander Motin <mav@FreeBSD.org>
Date
1 Nov 2011 08:57:49
Subject
svn commit: r226985 - head/sys/geom
Message-ID
201111010857.pA18vnjm057514@svn.freebsd.org


[ Hide this part ]
Author: mav
Date: Tue Nov 1 08:57:49 2011
New Revision: 226985
URL: http://svn.freebsd.org/changeset/base/226985

Log:
Workaround the problem introduced by combination of r162200 and r215687.
r162200 delays provider orphanization until all running requests complete,
to workaround broken orphan() method implementation in some classes.
r215687 removes persistent periodic (10Hz) event thread wake ups.
Together these changes can indefinitely delay orphanization until some
other event wake up the event thread. One consequence of this is inability
of CAM to destroy device disconnected when busy and, as consequence, create
new one after reconnection.

While the best solution would be to revert r162200, it is not easy, as
some classes still look broken in that way. Instead conditionally wake up
event thread if there are some providers waiting for orphanization.

MFC after: 1 week

Modified:
head/sys/geom/geom_event.c

Modified: head/sys/geom/geom_event.c
==============================================================================
--- head/sys/geom/geom_event.c Tue Nov 1 08:24:01 2011 (r226984)
+++ head/sys/geom/geom_event.c Tue Nov 1 08:57:49 2011 (r226985)
@@ -294,7 +294,7 @@ g_run_events()
} else {
g_topology_unlock();
msleep(&g_wait_event, &g_eventlock, PRIBIO | PDROP,
- "-", 0);
+ "-", TAILQ_EMPTY(&g_doorstep) ? 0 : hz / 10);
}
}
/* NOTREACHED */

Elapsed time: 0.083 seconds