Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs Unlock the hash lock before returning an error in nf...



details:   https://anonhg.NetBSD.org/src/rev/4f7aba2c346e
branches:  trunk
changeset: 508800:4f7aba2c346e
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Fri Apr 20 07:58:04 2001 +0000

description:
Unlock the hash lock before returning an error in nfs_nget.
>From IWAMOTO Toshihiro.

diffstat:

 sys/nfs/nfs_node.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r e09a27324f93 -r 4f7aba2c346e sys/nfs/nfs_node.c
--- a/sys/nfs/nfs_node.c        Fri Apr 20 07:40:54 2001 +0000
+++ b/sys/nfs/nfs_node.c        Fri Apr 20 07:58:04 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_node.c,v 1.41 2001/02/07 12:40:44 tsutsui Exp $    */
+/*     $NetBSD: nfs_node.c,v 1.42 2001/04/20 07:58:04 fvdl Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -186,6 +186,7 @@
         */
        error = VOP_GETATTR(vp, np->n_vattr, curproc->p_ucred, curproc);
        if (error) {
+               lockmgr(&nfs_hashlock, LK_RELEASE, 0);
                return error;
        }
        uvm_vnp_setsize(vp, np->n_vattr->va_size);



Home | Main Index | Thread Index | Old Index