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:
avg 2017-10-24 14:59:31 +00:00
parent 135fa0db36
commit 075c9b9645

View File

@ -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