iscsi_shutdown_post: do nothing if panic-ing
There is nothing that that routine should or could really do in that context. Reported by: Ben RUBSON <ben.rubson@gmail.com> MFC after: 1 week
This commit is contained in:
parent
135fa0db36
commit
075c9b9645
@ -2458,8 +2458,10 @@ static void
|
||||
iscsi_shutdown_post(struct iscsi_softc *sc)
|
||||
{
|
||||
|
||||
ISCSI_DEBUG("removing all sessions due to shutdown");
|
||||
iscsi_terminate_sessions(sc);
|
||||
if (panicstr == NULL) {
|
||||
ISCSI_DEBUG("removing all sessions due to shutdown");
|
||||
iscsi_terminate_sessions(sc);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user