diff options
author | grog <grog@FreeBSD.org> | 1999-09-03 01:37:26 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-09-03 01:37:26 +0000 |
commit | 087bc8c4fb2e6dfa0280902b896d9181d972e86a (patch) | |
tree | 33ec9b584c22af1e1685023a9eec2b20b39737b2 /sys/dev/vinum/vinumlock.c | |
parent | 082c01dec6a7b9b7ff5d35eedb4e69f8c0345882 (diff) | |
download | FreeBSD-src-087bc8c4fb2e6dfa0280902b896d9181d972e86a.zip FreeBSD-src-087bc8c4fb2e6dfa0280902b896d9181d972e86a.tar.gz |
Reverse MFC of revision 1.5.2.7:
Remove a rather embarrassing race condition.
Egged-on-by: alfred
Diffstat (limited to 'sys/dev/vinum/vinumlock.c')
-rw-r--r-- | sys/dev/vinum/vinumlock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinumlock.c b/sys/dev/vinum/vinumlock.c index c7bf3db..ff46df3 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 */ } |