ib_srpt: Speed up kernel driver unloading after a cable pull (merge r5727 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-12-05 10:57:03 +00:00
parent fe9540b213
commit d8da2ff95d

View File

@@ -2285,11 +2285,12 @@ static void __srpt_close_all_ch(struct srpt_tgt *srpt_tgt)
list_for_each_entry(nexus, &srpt_tgt->nexus_list, entry) {
list_for_each_entry(ch, &nexus->ch_list, list) {
if (srpt_disconnect_ch(ch) < 0)
continue;
PRINT_INFO("Closing channel %s because target %s has"
" been disabled", ch->sess_name,
srpt_tgt->scst_tgt->tgt_name);
if (srpt_disconnect_ch(ch) >= 0)
PRINT_INFO("Closing channel %s-%d because"
" target %s has been disabled",
ch->sess_name, ch->qp->qp_num,
srpt_tgt->scst_tgt->tgt_name);
srpt_close_ch(ch);
}
}
}