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