bdev/iscsi: unregister conn poller when idle
There's no need to keep polling with iscsi_bdev_conn_poll() when the request list is empty, as new requests already restart the poller when needed. Signed-off-by: John Levon <john.levon@nutanix.com> Change-Id: Iec5553f8c14d32e894989c9f7a448b6817a821b1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9375 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
99fb67803c
commit
6751909838
@ -839,6 +839,7 @@ iscsi_bdev_conn_poll(void *arg)
|
||||
struct iscsi_context *context;
|
||||
|
||||
if (TAILQ_EMPTY(&g_iscsi_conn_req)) {
|
||||
spdk_poller_unregister(&g_conn_poller);
|
||||
return SPDK_POLLER_IDLE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user