Add lock assertion.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
7285efe8cd
commit
e204e2cd93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297018
@ -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 New Issue
Block a user