Commit b2a2897d authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust

NFS improve pnfs_put_deviceid_cache debug print

What we really want to know is the ref count.
Signed-off-by: default avatarAndy Adamson <andros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 2c4cdf8f
...@@ -951,7 +951,7 @@ pnfs_put_deviceid_cache(struct nfs_client *clp) ...@@ -951,7 +951,7 @@ pnfs_put_deviceid_cache(struct nfs_client *clp)
{ {
struct pnfs_deviceid_cache *local = clp->cl_devid_cache; struct pnfs_deviceid_cache *local = clp->cl_devid_cache;
dprintk("--> %s cl_devid_cache %p\n", __func__, clp->cl_devid_cache); dprintk("--> %s ({%d})\n", __func__, atomic_read(&local->dc_ref));
if (atomic_dec_and_lock(&local->dc_ref, &clp->cl_lock)) { if (atomic_dec_and_lock(&local->dc_ref, &clp->cl_lock)) {
int i; int i;
/* Verify cache is empty */ /* Verify cache is empty */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment