X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fldlm%2Fldlm_pool.c;h=23e847b9482d519473fd90f070f9c983e84124cb;hb=68bbae08db0da2767bb46e370a43b24f6f1e3369;hp=2749a7631e6819a52f0cf9b029963e669c567715;hpb=adb6cea0b70ac465b2a47635d9dc45d64ab1605b;p=fs%2Flustre-release.git diff --git a/lustre/ldlm/ldlm_pool.c b/lustre/ldlm/ldlm_pool.c index 2749a76..23e847b 100644 --- a/lustre/ldlm/ldlm_pool.c +++ b/lustre/ldlm/ldlm_pool.c @@ -28,6 +28,9 @@ /* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2011 Whamcloud, Inc. + * */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -1264,9 +1267,9 @@ void ldlm_pools_recalc(ldlm_side_t client) cfs_spin_lock(&ns->ns_lock); /* * skip ns which is being freed, and we don't want to increase - * its refcount again, not even temporarily. bz21519. + * its refcount again, not even temporarily. bz21519 & LU-499. */ - if (cfs_atomic_read(&ns->ns_bref) == 0) { + if (ns->ns_stopping) { skip = 1; } else { skip = 0;