nvmf: fix nvmf_tgt_accept() return code
Pollers are supposed to return SPDK_POLLER_{BUSY,IDLE}. Signed-off-by: John Levon <john.levon@nutanix.com> Change-Id: I92bd184aaba9e3efb730b68a6024ebc9757ffd8b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8559 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
585543acd8
commit
2c34af8bff
@ -248,7 +248,7 @@ nvmf_tgt_accept(void *ctx)
|
|||||||
count += nvmf_transport_accept(transport);
|
count += nvmf_transport_accept(transport);
|
||||||
}
|
}
|
||||||
|
|
||||||
return count;
|
return count > 0 ? SPDK_POLLER_BUSY : SPDK_POLLER_IDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct spdk_nvmf_tgt *
|
struct spdk_nvmf_tgt *
|
||||||
|
Loading…
Reference in New Issue
Block a user