Spdk/lib/vhost/rte_vhost
wanghonghui 3eb66ba88e vhost: do not close a closed connfd
kill a spdk process with aio bdev storage many times will get error messages:
bdev_aio.c: 244:bdev_aio_group_poll: *ERROR*: epoll_wait error(9): Bad file descriptor on ch=0x152a7f0
vhost.c:1010:_spdk_vhost_event_send: *ERROR*: Timeout waiting for event: stop device.

When spdk process exits, the connfd is closed by rte_vhost_driver_unregister, then
other function such as epoll_create1 in aio bdev may allocate the same fd,
but this fd is closed by vhost_user_read_cb again, so epoll_wait return -1

Signed-off-by: Honghui Wang <wanghonghui@ucloud.cn>
Change-Id: Ic3fd938892f004c18fb38d4594c006c40a01efaa
Reviewed-on: https://review.gerrithub.io/c/439851
Reviewed-by: GangCao <gang.cao@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: Changpeng Liu <changpeng.liu@intel.com>
2019-01-16 05:11:58 +00:00
..
fd_man.c vhost: upgrade SPDK vhost code to DPDK 17.05 2017-05-08 17:04:29 -07:00
fd_man.h vhost: upgrade SPDK vhost code to DPDK 17.05 2017-05-08 17:04:29 -07:00
Makefile rte_vhost: include rte_config.h via compiler option 2017-09-07 18:02:09 -04:00
rte_vhost.h vhost/nvme: add shared BAR space to enable old Guest kernel 2018-11-27 13:24:42 +00:00
socket.c vhost: do not close a closed connfd 2019-01-16 05:11:58 +00:00
vhost_user.c vhost fix potential memleak in vhost_backend_cleanup 2019-01-15 17:01:09 +00:00
vhost_user.h vhost/nvme: remove VHOST_USER_NVME_IO_CMD socket message 2018-11-27 13:24:42 +00:00
vhost.c vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00
vhost.h vhost/nvme: add shared BAR space to enable old Guest kernel 2018-11-27 13:24:42 +00:00