From 216166ee0de39b10ba8e60f4115d65e1251ff29f Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 13 Nov 2004 11:53:02 +0000 Subject: Introduce an alias for FILEDESC_{UN}LOCK() with the suffix _FAST. Use this in all the places where sleeping with the lock held is not an issue. The distinction will become significant once we finalize the exact lock-type to use for this kind of case. --- sys/fs/unionfs/union_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/fs/unionfs/union_subr.c') diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c index 99b86ea..364736c 100644 --- a/sys/fs/unionfs/union_subr.c +++ b/sys/fs/unionfs/union_subr.c @@ -1053,9 +1053,9 @@ union_vn_create(vpp, un, td) struct componentname cn; *vpp = NULLVP; - FILEDESC_LOCK(td->td_proc->p_fd); + FILEDESC_LOCK_FAST(td->td_proc->p_fd); cmode = UN_FILEMODE & ~td->td_proc->p_fd->fd_cmask; - FILEDESC_UNLOCK(td->td_proc->p_fd); + FILEDESC_UNLOCK_FAST(td->td_proc->p_fd); /* * Build a new componentname structure (for the same -- cgit v1.1