Commit 4dc4d5cd authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

reactor: add an assert for thread context.



Fixes kw warning #13674

Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Change-Id: I65b8aac045849a8245c6b3e14d853043afdf43a3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1986


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 2a6a4912
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -567,6 +567,8 @@ _reactor_request_thread_reschedule(struct spdk_thread *thread)

	lw_thread = spdk_thread_get_ctx(thread);

	assert(lw_thread != NULL);

	lw_thread->resched = true;
}