mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add lock assertion.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
7285efe8cd
commit
e204e2cd93
1 changed files with 2 additions and 0 deletions
|
|
@ -288,6 +288,8 @@ iscsi_session_terminate_task(struct iscsi_session *is,
|
|||
struct iscsi_outstanding *io, bool requeue)
|
||||
{
|
||||
|
||||
ISCSI_SESSION_LOCK_ASSERT(is);
|
||||
|
||||
if (io->io_ccb != NULL) {
|
||||
io->io_ccb->ccb_h.status &= ~(CAM_SIM_QUEUED | CAM_STATUS_MASK);
|
||||
if (requeue)
|
||||
|
|
|
|||
Loading…
Reference in a new issue