5f27092835
A common pattern is: if (foo->thread == spdk_get_thread()) cb(arg); else spdk_thread_send_msg(foo->thread, cb, arg); for cases where it's important the callback runs on a particular thread, but it doesn't matter if it's synchronous or asynchronous. Add a new API to support this pattern, and convert over the current instances. Signed-off-by: John Levon <john.levon@nutanix.com> Change-Id: Idfbf77c02c9321c52e07181ffd8b0c437e1ab335 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11503 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> |
||
---|---|---|
.. | ||
dev.c | ||
lun.c | ||
Makefile | ||
port.c | ||
scsi_bdev.c | ||
scsi_internal.h | ||
scsi_pr.c | ||
scsi_rpc.c | ||
scsi.c | ||
spdk_scsi.map | ||
task.c |