diff options
author | grog <grog@FreeBSD.org> | 2001-01-14 06:34:57 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2001-01-14 06:34:57 +0000 |
commit | 41bf790205da9df94e6c6fe700cefca81250363d (patch) | |
tree | 1385994b05a022edb9722784bac1f42f87d2fa7d /sys/dev/vinum/vinumlock.c | |
parent | 75e58e6a2acba2f328efcb016e150b0969529742 (diff) | |
download | FreeBSD-src-41bf790205da9df94e6c6fe700cefca81250363d.zip FreeBSD-src-41bf790205da9df94e6c6fe700cefca81250363d.tar.gz |
struct rangelock: Remove the field 'plex' from the entry. Range locks
are accessed only via the plex, so there's never any confusion as to
the plex number. This value was, as a result, unused.
Diffstat (limited to 'sys/dev/vinum/vinumlock.c')
-rw-r--r-- | sys/dev/vinum/vinumlock.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinumlock.c b/sys/dev/vinum/vinumlock.c index 7d6562b..c85fbae 100644 --- a/sys/dev/vinum/vinumlock.c +++ b/sys/dev/vinum/vinumlock.c @@ -37,7 +37,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumlock.c,v 1.14 2001/01/10 04:10:30 grog Exp grog $ + * $Id: vinumlock.c,v 1.13 2000/05/02 23:25:02 grog Exp grog $ * $FreeBSD$ */ @@ -152,15 +152,13 @@ lockrange(daddr_t stripe, struct buf *bp, struct plex *plex) if (lock->stripe) { /* in use */ foundlocks++; /* found another one in use */ if ((lock->stripe == stripe) /* it's our stripe */ - &&(lock->plexno == plex->plexno) /* and our plex */ - &&(lock->bp != bp)) { /* but not our request */ + &&(lock->bp != bp)) { /* but not our request */ #ifdef VINUMDEBUG if (debug & DEBUG_LASTREQS) { struct rangelock info; info.stripe = stripe; info.bp = bp; - info.plexno = plex->plexno; logrq(loginfo_lockwait, (union rqinfou) &info, bp); } #endif @@ -188,7 +186,6 @@ lockrange(daddr_t stripe, struct buf *bp, struct plex *plex) */ pos->stripe = stripe; pos->bp = bp; - pos->plexno = plex->plexno; plex->usedlocks++; /* one more lock */ mtx_exit(&plex->lockmtx, MTX_DEF); #ifdef VINUMDEBUG |