Spdk/lib/nbd
Xiaodong Liu d8f5fead29 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
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-02-15 22:02:48 +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: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
nbd.c nbd: avoid unlimited wait for device busy 2019-02-15 22:02:48 +00:00