From 9380f06bdcc7b7df75b3c65b603a1aa026e8f025 Mon Sep 17 00:00:00 2001 From: Vishal Verma Date: Sat, 9 Jun 2018 15:56:09 -0600 Subject: [PATCH] iscsi: Correct return code values of bdev iscsi pollers This corrects return code value of the bdev iscsi pollers. It was needed to ensure all the pollers output consistent return code values. This will further help in measuring consistent poller busy, idle or unknown tsc stats. Change-Id: I19c678bee9079f6aa453a4b925819a5ea1086534 Signed-off-by: Vishal Verma Reviewed-on: https://review.gerrithub.io/414722 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Daniel Verkamp --- lib/bdev/iscsi/bdev_iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bdev/iscsi/bdev_iscsi.c b/lib/bdev/iscsi/bdev_iscsi.c index 25ae4d18d..a41514d24 100644 --- a/lib/bdev/iscsi/bdev_iscsi.c +++ b/lib/bdev/iscsi/bdev_iscsi.c @@ -337,7 +337,7 @@ bdev_iscsi_poll_lun(struct bdev_iscsi_lun *lun) } } - return 0; + return -1; } static int @@ -667,7 +667,7 @@ iscsi_bdev_conn_poll(void *arg) } } - return 0; + return -1; } int