]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/doc/iscsi/hotplug.md
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / spdk / doc / iscsi / hotplug.md
CommitLineData
7c673cae
FG
1# iSCSI Hotplug {#iscsi_hotplug}
2
3At the iSCSI level, we provide the following support for Hotplug:
4
51. bdev/nvme:
6At the bdev/nvme level, we start one hotplug monitor which will call
7spdk_nvme_probe() periodically to get the hotplug events. We provide the
8private attach_cb and remove_cb for spdk_nvme_probe(). For the attach_cb,
9we will create the block device base on the NVMe device attached, and for the
10remove_cb, we will unregister the block device, which will also notify the
11upper level stack (for iSCSI target, the upper level stack is scsi/lun) to
12handle the hot-remove event.
13
142. scsi/lun:
15When the LUN receive the hot-remove notification from block device layer,
16the LUN will be marked as removed, and all the IOs after this point will
17return with check condition status. Then the LUN starts one poller which will
18wait for all the commands which have already been submitted to block device to
19return back; after all the commands return back, the LUN will be deleted.
20
21@sa spdk_nvme_probe