a629b17d51
The ioctl NBD_SET_SOCK can return EBUSY on conditions not only the kernel module hasn't loaded entirely yet, but also the nbd device is setup by another process, which will lead the poller's infinite polling. This patch will wait only 1 second if device is busy. Change-Id: I8b1cfab725cba180f774a57ced3fa4ba81da2037 Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/444804 (master) Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447598 Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nbd_internal.h | ||
nbd_rpc.c | ||
nbd.c |