From 988fff849e639e8a248dbbdcc42846adbb88a0a6 Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Mon, 19 May 2014 07:16:10 +0000 Subject: [PATCH] isert: Fix smatch error Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5530 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_rdma.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index 000edbdb6..067791c3f 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -764,15 +764,15 @@ static struct isert_device *isert_device_create(struct ib_device *ib_dev) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) cq_desc->cq_workqueue = create_singlethread_workqueue(wq_name); #else +#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 36) cq_desc->cq_workqueue = alloc_workqueue(wq_name, WQ_CPU_INTENSIVE| -#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 36) - WQ_RESCUER + WQ_RESCUER, 1); #else - WQ_MEM_RECLAIM + cq_desc->cq_workqueue = alloc_workqueue(wq_name, + WQ_CPU_INTENSIVE| + WQ_MEM_RECLAIM, 1); #endif - - , 1); #endif if (!cq_desc->cq_workqueue) { pr_err("Failed to alloc iser cq work queue for dev:%s\n",