numam-spdk/lib/scsi
John Levon 5f27092835 thread: add spdk_thread_exec_msg()
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>
2022-02-23 10:06:49 +00:00
..
dev.c scsi: Manage LUNs per device by not fixed size array but linked list 2021-10-12 09:10:18 +00:00
lun.c thread: add spdk_thread_exec_msg() 2022-02-23 10:06:49 +00:00
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
port.c lib/scsi: Remove spdk_ prefix from internal APIs 2020-04-16 08:09:14 +00:00
scsi_bdev.c spelling: lib 2021-12-03 08:12:55 +00:00
scsi_internal.h Lib/iSCSI: add the LUN Resize support 2022-01-20 07:56:23 +00:00
scsi_pr.c spelling: lib 2021-12-03 08:12:55 +00:00
scsi_rpc.c lib/scsi: Remove spdk prefix from private functions 2020-04-16 08:09:14 +00:00
scsi.c scsi: Decide LUN format for each LUN ID 2021-10-12 09:10:18 +00:00
spdk_scsi.map scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs 2021-10-11 10:08:22 +00:00
task.c scsi: relax spdk_scsi_task_gather_data assert 2021-03-09 08:53:21 +00:00