mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user