Fix iSCSI initiator crash that could happen with out-of-memory
conditions with in-flight IO and subsequent reconnection. PR: 199117 MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5673
This commit is contained in:
parent
e7e6b1ebc8
commit
938bcb04fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297268
@ -2222,6 +2222,7 @@ iscsi_action_scsiio(struct iscsi_session *is, union ccb *ccb)
|
|||||||
|
|
||||||
error = icl_pdu_append_data(request, csio->data_ptr, len, M_NOWAIT);
|
error = icl_pdu_append_data(request, csio->data_ptr, len, M_NOWAIT);
|
||||||
if (error != 0) {
|
if (error != 0) {
|
||||||
|
iscsi_outstanding_remove(is, io);
|
||||||
icl_pdu_free(request);
|
icl_pdu_free(request);
|
||||||
if ((ccb->ccb_h.status & CAM_DEV_QFRZN) == 0) {
|
if ((ccb->ccb_h.status & CAM_DEV_QFRZN) == 0) {
|
||||||
xpt_freeze_devq(ccb->ccb_h.path, 1);
|
xpt_freeze_devq(ccb->ccb_h.path, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user