[pnfs] [PATCH 2/4] nfs41: debug prints for nfs4_init_slot_table
Benny Halevy
bhalevy at panasas.com
Fri Mar 14 07:12:31 EDT 2008
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/nfs4proc.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 068dcd2..8b1bf5d 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -4524,6 +4524,8 @@ int nfs4_init_slot_table(struct nfs4_channel *channel)
struct nfs4_slot *slot;
int ret = 0;
+ dprintk("--> %s: max_reqs=%u\n", __func__,
+ channel->chan_attrs.max_reqs);
slot = kzalloc(channel->chan_attrs.max_reqs * sizeof(struct nfs4_slot),
GFP_ATOMIC);
if (!slot)
@@ -4539,6 +4541,8 @@ int nfs4_init_slot_table(struct nfs4_channel *channel)
tbl->max_slots = channel->chan_attrs.max_reqs;
tbl->slots = slot;
+ dprintk("%s: slots=%p max_slots=%d\n", __func__,
+ tbl->slots, tbl->max_slots);
for (i = 0; i < channel->chan_attrs.max_reqs; ++i) {
slot = &tbl->slots[i];
@@ -4549,6 +4553,7 @@ int nfs4_init_slot_table(struct nfs4_channel *channel)
out:
spin_unlock(&tbl->slot_tbl_lock);
+ dprintk("<-- %s: return %d\n", __func__, ret);
return ret;
}
--
1.5.3.3
More information about the pNFS
mailing list