diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-12-05 06:12:39 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-12-05 06:12:39 +0000 |
commit | 167eefaf4c7fc5246b12135f55f22a0afb25702d (patch) | |
tree | ff24f4d71965ff7df5986a847db9abb0ed3fb222 | |
parent | 7d34b9ef86ba6bf7c8d45e2eb975d93a03de3e09 (diff) |
Release mountlist_slock if vfs_busy fails.
-rw-r--r-- | sys/kern/vfs_sync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index afd3e6bb080..c689ddb770b 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_sync.c,v 1.6 1999/12/05 05:17:38 art Exp $ */ +/* $OpenBSD: vfs_sync.c,v 1.7 1999/12/05 06:12:38 art Exp $ */ /* @@ -318,7 +318,9 @@ sync_fsync(v) if (asyncflag) mp->mnt_flag |= MNT_ASYNC; vfs_unbusy(mp, ap->a_p); - } + } else + simple_unlock(&mountlist_slock); + return (0); } |