c3aaaa0181
NVMe hotplug must be monitored in the primary process - DPDK doesn't support trying to handle it in the secondary process. This issue was somewhat masked previously in secondary processes, since usually it would just probe(NULL) which meant probe all attached NVMe controllers. So in the secondary process, we would probe just once, and create the hotplug fd - it would never actually try to monitor it. But when explicitly specifying multiple trids in a secondary process, probe would get called multiple times. First time would be fine since it only creates the hotplug fd. But second time would segfault since monitoring for hotplug requires checking the DPDK-allocated context which doesn't exist in the secondary process. Fixes issue #1063. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I2a9a91e222c206034293d90e30e3f598c8d7baa8 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475015 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr_ocssd_cmd.c | ||
nvme_ctrlr.c | ||
nvme_cuse.c | ||
nvme_cuse.h | ||
nvme_fabric.c | ||
nvme_internal.h | ||
nvme_io_msg.c | ||
nvme_io_msg.h | ||
nvme_ns_cmd.c | ||
nvme_ns_ocssd_cmd.c | ||
nvme_ns.c | ||
nvme_opal_internal.h | ||
nvme_opal.c | ||
nvme_pcie.c | ||
nvme_qpair.c | ||
nvme_quirks.c | ||
nvme_rdma.c | ||
nvme_tcp.c | ||
nvme_transport.c | ||
nvme_uevent.c | ||
nvme_uevent.h | ||
nvme.c |