Whamcloud - gitweb
LU-2924 Make quota namespace refcounting consistent
authorOleg Drokin <green@whamcloud.com>
Thu, 2 May 2013 04:50:24 +0000 (00:50 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 7 Jun 2013 03:55:52 +0000 (23:55 -0400)
commit716ff602a3edd1597d0f1a658d2d63398463e0c2
treed62f61a8f92771dba31d87bbc25b1c6e3a1dd681
parentff5b59d60a28fe22ef011ab92ff6b806b8e3c552
LU-2924 Make quota namespace refcounting consistent

It seems quota namespace is needlessly referenced on connect,
but that's not necessary as it could not go away until entire
obd goes away.
On the other hand this extra reference disturbs other logic
depending on empty namespace having zero refcount, so this patch
drops such extra referencing.

Change-Id: I62e04ef01a3673e4ffadc4204f3e1768e44fed18
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/6234
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_resource.c
lustre/quota/qsd_lib.c