From c3c23dcb7ef13f56028201672f3d150077b49e96 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Sep 2011 15:22:13 +0000 Subject: [PATCH] ib_srpt: Make srpt_release_sdev() logging more informative git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3856 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d4ff90bc9..c50aeffdf 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3382,10 +3382,12 @@ static int srpt_release_sdev(struct srpt_device *sdev) PRINT_INFO("%s: waiting for session unregistration ...", sdev->device->name); spin_lock_irq(&sdev->spinlock); - list_for_each_entry_safe(ch, next_ch, &sdev->rch_list, list) - PRINT_INFO("%s: %d commands in progress", + list_for_each_entry_safe(ch, next_ch, &sdev->rch_list, list) { + PRINT_INFO("%s: state %d; %d commands in progress", ch->sess_name, + ch->state, atomic_read(&ch->scst_sess->sess_cmd_count)); + } spin_unlock_irq(&sdev->spinlock); }