Date: Thu, 15 May 2003 14:07:33 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ufs ufs_extattr.c Message-ID: <200305152107.h4FL7XFi072471@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2003/05/15 14:07:33 PDT FreeBSD src repository Modified files: sys/ufs/ufs ufs_extattr.c Log: Jeff added locking assertions that the VV_ flags on vnodes were modified only while holding appropriate vnode locks. This patch slides the lock release for ufs_extattr_enable() to continue to hold the active vnode lock on a backing file until after the flag change; it also acquires a vnode lock when disabling an attribute and hence clearing a flag on the backing vnode. This permits VFS_DEBUG_LOCKS to run UFS1 extended attributes without panicking, as well as preventing a potential race and vnode flag problem. Approved by: re (jhb) Pointed out by: DEBUG_VFS_LOCKS Revision Changes Path 1.63 +11 -5 src/sys/ufs/ufs/ufs_extattr.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305152107.h4FL7XFi072471>