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
This commit is contained in:
Bart Van Assche
2011-09-17 15:22:13 +00:00
parent 97547c2f1d
commit c3c23dcb7e

View File

@@ -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);
}