ib_srpt: Speed up kernel driver unloading after a cable pull

When unloading the ib_srpt kernel module, instead of waiting until
all connected queue pairs have left the TimeWait state, destroy
these queue pairs immediately.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5727 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-08-25 11:46:43 +00:00
parent 262506de26
commit 8995f1c241
+6 -6
View File
@@ -2286,12 +2286,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-%d because target %s has"
" been disabled", ch->sess_name,
ch->qp->qp_num,
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);
}
}
}