HomeFreeBSD

iscsi: Abort data-out tasks queued on a terminating session.

Description

iscsi: Abort data-out tasks queued on a terminating session.

cfiscsi_datamove_out() can race with cfiscsi_session_terminate_tasks()
and enqueue a new task after the latter function has aborted existing
tasks. This could result in a deadlock as
cfiscsi_session_terminate_tasks() waited forever for this task to
complete.

Reviewed by: mav
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D31892

(cherry picked from commit 0cd6e85e242bb07a33df9a6314e90bcb0ba99576)

Details

Provenance
jhbAuthored on Sep 15 2021, 8:25 PM
Reviewer
mav
Differential Revision
D31892: iscsi: Abort data-out tasks queued on a terminating session.
Parents
rGc1d6b0cdca19: iscsi: Add a helper routine to abort a data-out task.
Branches
Unknown
Tags
Unknown