Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't permanently lose the async bit on an failed u...



details:   https://anonhg.NetBSD.org/src/rev/f243f85f5325
branches:  trunk
changeset: 474352:f243f85f5325
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sun Jul 04 06:16:29 1999 +0000

description:
Don't permanently lose the async bit on an failed unmount

diffstat:

 sys/kern/vfs_syscalls.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 9f7999b612ec -r f243f85f5325 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Sun Jul 04 05:20:52 1999 +0000
+++ b/sys/kern/vfs_syscalls.c   Sun Jul 04 06:16:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.139 1999/07/01 18:58:16 wrstuden Exp $      */
+/*     $NetBSD: vfs_syscalls.c,v 1.140 1999/07/04 06:16:29 sommerfeld Exp $    */
 
 /*
  * Copyright (c) 1989, 1993
@@ -457,6 +457,7 @@
 {
        struct vnode *coveredvp;
        int error;
+       int async;
 
        simple_lock(&mountlist_slock);
        mp->mnt_flag |= MNT_UNMOUNT;
@@ -464,6 +465,7 @@
        lockmgr(&mp->mnt_lock, LK_DRAIN | LK_INTERLOCK, &mountlist_slock);
        if (mp->mnt_flag & MNT_EXPUBLIC)
                vfs_setpublicfs(NULL, NULL, NULL);
+       async = mp->mnt_flag & ASYNC;
        mp->mnt_flag &=~ MNT_ASYNC;
        cache_purgevfs(mp);     /* remove cache entries for this file sys */
        if (((mp->mnt_flag & MNT_RDONLY) ||
@@ -473,6 +475,7 @@
        simple_lock(&mountlist_slock);
        if (error) {
                mp->mnt_flag &= ~MNT_UNMOUNT;
+               mp->mnt_flag |= async;
                lockmgr(&mp->mnt_lock, LK_RELEASE | LK_INTERLOCK | LK_REENABLE,
                    &mountlist_slock);
                if (mp->mnt_flag & MNT_MWAIT)



Home | Main Index | Thread Index | Old Index