From a742b7d3d8bc895c744af5885cdb2c9940bb5ddf Mon Sep 17 00:00:00 2001 From: ad Date: Sat, 23 May 2009 15:59:30 +0000 Subject: [PATCH] - Cosmetic change to previous. - Add a comment. --- sys/nfs/nfs_export.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/nfs/nfs_export.c b/sys/nfs/nfs_export.c index 700fb1b97711..85e3e4978827 100644 --- a/sys/nfs/nfs_export.c +++ b/sys/nfs/nfs_export.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_export.c,v 1.45 2009/05/23 15:31:21 ad Exp $ */ +/* $NetBSD: nfs_export.c,v 1.46 2009/05/23 15:59:30 ad Exp $ */ /*- * Copyright (c) 1997, 1998, 2004, 2005, 2008 The NetBSD Foundation, Inc. @@ -72,10 +72,12 @@ /* * VFS exports list management. + * + * Lock order: vfs_busy -> mnt_updating -> netexport_lock. */ #include -__KERNEL_RCSID(0, "$NetBSD: nfs_export.c,v 1.45 2009/05/23 15:31:21 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nfs_export.c,v 1.46 2009/05/23 15:59:30 ad Exp $"); #include #include @@ -207,10 +209,7 @@ netexport_fini(void) KASSERT(mp != NULL); - for (;;) { - if (CIRCLEQ_EMPTY(&netexport_list)) { - break; - } + while (!CIRCLEQ_EMPTY(&netexport_list)) { netexport_wrlock(); ne = CIRCLEQ_FIRST(&netexport_list); mp = ne->ne_mount;