diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 709814eec..03b6a6fc6 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3438,10 +3438,8 @@ static int srpt_release_sdev(struct srpt_device *sdev) spin_lock_irq(&sdev->spinlock); list_for_each_entry_safe(ch, next_ch, &sdev->rch_list, list) { PRINT_INFO("%s: state %s; %d commands in progress", - ch->sess_name, - get_ch_state_name(ch->state), + ch->sess_name, get_ch_state_name(ch->state), atomic_read(&ch->scst_sess->sess_cmd_count)); - __srpt_close_ch(ch); } spin_unlock_irq(&sdev->spinlock); }