[pnfs] [PATCH 2/2] Slot Table Implementation
iyer at netapp.com
iyer at netapp.com
Thu Mar 15 21:11:19 EDT 2007
From: iyer <iyer at netapp.com>
Changed the debug messages to dprintks
Signed-off-by: Rahul Iyer <iyer at netapp.com>
---
fs/nfs/nfs4proc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 28513a1..b4ce093 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -241,7 +241,7 @@ static int nfs41_proc_sequence_done(struct nfs4_session *session, struct nfs41_s
clear_bit(NFS4_SLOT_BUSY, &res->slot->flags);
smp_mb__after_clear_bit();
- printk(KERN_EMERG "waking up waiters on slot %d\n", res->slot->slot_nr);
+ dprintk("waking up waiters on slot %d\n", res->slot->slot_nr);
/* Wake up the threads waiting on this slot */
wake_up_bit(&res->slot->flags, NFS4_SLOT_BUSY);
@@ -299,7 +299,7 @@ struct nfs4_slot *nfs4_find_slot(struct nfs4_channel *channel)
target_slot = slot;
}
spin_unlock(&slot->slot_lock);
- printk(KERN_EMERG "slot %d has busy bit %s and nr_waiters is %u\n"
+ dprintk("slot %d has busy bit %s and nr_waiters is %u\n"
, slot->slot_nr,
(need_to_sleep)?"set":"unset",
slot->nr_waiters);
@@ -310,7 +310,7 @@ struct nfs4_slot *nfs4_find_slot(struct nfs4_channel *channel)
* when woken up
*/
if (need_to_sleep) {
- printk(KERN_EMERG "sleeping on slot %d; seq_nr: %d\n",
+ dprintk("sleeping on slot %d; seq_nr: %d\n",
target_slot->slot_nr,
target_slot->seq_nr);
spin_lock(&target_slot->slot_lock);
@@ -333,7 +333,7 @@ struct nfs4_slot *nfs4_find_slot(struct nfs4_channel *channel)
break;
}while (test_and_set_bit(NFS4_SLOT_BUSY, &target_slot->flags));
- printk(KERN_EMERG "slot id: %u\nseqid: %u\n max_slots: %u\n",
+ dprintk("slot id: %u\nseqid: %u\n max_slots: %u\n",
target_slot->slot_nr, target_slot->seq_nr,
max_slots);
--
1.5.0.2
More information about the pNFS
mailing list