From 1fa2fb7bf2a4cbd19d1845aa6c42e0f291c6cbf1 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Fri, 3 Sep 1999 01:37:26 +0000 Subject: [PATCH] Reverse MFC of revision 1.5.2.7: Remove a rather embarrassing race condition. Egged-on-by: alfred --- sys/dev/vinum/vinumlock.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/vinum/vinumlock.c b/sys/dev/vinum/vinumlock.c index c7bf3dbad931..ff46df3a297e 100644 --- a/sys/dev/vinum/vinumlock.c +++ b/sys/dev/vinum/vinumlock.c @@ -247,10 +247,8 @@ lockrange(daddr_t stripe, struct buf *bp, struct plex *plex) logrq(loginfo_lockwait, (union rqinfou) &info, bp); } #endif - splx(s); tsleep((void *) lock->stripe, PRIBIO | PCATCH, "vrlock", 2 * hz); plex->lockwaits++; /* waited one more time */ - s = splbio(); } break; /* out of the inner level loop */ }