numam-spdk/lib/nvmf
Konrad Sztyber 1c81d1afa2 nvmf: clear ctrlr->listener in remove_listener
When removing a listener, there's a small window when the listener is
already freed, while the controllers that were created on that listener
are still active.  It happens, because the listener is removed before
disconnecting its qpairs and in turn destroying the controllers.

The ctrlr->listener pointer is now cleared when a listener is freed and
its value is checked for NULL before each use.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Iace65a46eebc5972cc4ef0f1c1822ffc5d3e559e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9237
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-09-08 08:08:59 +00:00
..
ctrlr_bdev.c nvmf: In zcopy, delay setting req->data until end of start operation 2021-07-27 14:53:39 +00:00
ctrlr_discovery.c nvmf: remove a bdev_module.h #include 2021-05-11 11:57:01 +00:00
ctrlr.c nvmf: clear ctrlr->listener in remove_listener 2021-09-08 08:08:59 +00:00
fc_ls.c nvmf/fc: Handle out of order fused commands. 2021-01-14 16:18:25 +00:00
fc.c lib/trace: don't pass zero as a non-argument 2021-06-28 16:17:35 +00:00
Makefile nvmf/vfio-user: don't set RESERVATION support for vfio-user transport 2021-08-25 07:27:10 +00:00
nvmf_fc.h nvmf/fc: Add flag to differentiate LS queue and non LS queue. 2021-01-14 16:18:25 +00:00
nvmf_internal.h nvmf: Fix double controller destruction when subsys is deleted 2021-09-08 08:04:04 +00:00
nvmf_rpc.c nvmf: Correct the error path of transport creation. 2021-09-08 08:08:41 +00:00
nvmf.c nvmf: Correct the error path of transport creation. 2021-09-08 08:08:41 +00:00
rdma.c lib/nvmf: removed deprecated stats API 2021-07-23 07:10:03 +00:00
spdk_nvmf.map lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
subsystem.c nvmf: clear ctrlr->listener in remove_listener 2021-09-08 08:08:59 +00:00
tcp.c lib/nvmf : Fixed bad response if response is sent prior to _nvmf_request_complete being called 2021-09-03 08:07:55 +00:00
transport.c nvmf: add interface to dump transport specific listen opts 2021-09-06 09:53:57 +00:00
transport.h nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
vfio_user.c nvmf/vfio-user: clarify endpoint fd meaning 2021-09-07 07:33:29 +00:00