From 48d3eb40c71e5840e4d9e9af7addcfef7c382511 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 28 Oct 2016 22:40:14 +0000 Subject: Add TASKQID_INVALID Add the TASKQID_INVALID macros and update callers to use the macro instead of testing against 0. There is no functional change even though the functions in zfs_ctldir.c incorrectly used -1 instead of 0. Reviewed-by: Tom Caputi Reviewed-by: Tim Chase Signed-off-by: Brian Behlendorf Issue #5347 --- module/zfs/vdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/zfs/vdev.c') diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index e3a9da2d5..c51ed43e6 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -1191,7 +1191,7 @@ retry_sync: for (c = 0; c < children; c++) VERIFY(taskq_dispatch(tq, vdev_open_child, - vd->vdev_child[c], TQ_SLEEP) != 0); + vd->vdev_child[c], TQ_SLEEP) != TASKQID_INVALID); taskq_destroy(tq); } -- cgit v1.2.3