numam-spdk/lib/nbd
Xiaodong Liu a629b17d51 nbd: avoid unlimited wait for device busy
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>
2019-03-12 05:10:52 +00:00
..
Makefile nbd: add nbd stop rpc 2017-12-07 16:23:19 -05:00
nbd_internal.h nbd: add nbd stop rpc 2017-12-07 16:23:19 -05:00
nbd_rpc.c nbd: Make spdk_nbd_start asynchronous 2018-11-21 21:12:06 +00:00
nbd.c nbd: avoid unlimited wait for device busy 2019-03-12 05:10:52 +00:00