iser-target: Move INIT_WORK setup into isert_create_device_ib_res
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 12 Dec 2013 00:20:13 +0000 (16:20 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 19 Dec 2013 08:18:43 +0000 (00:18 -0800)
commit2853c2b6671509591be09213954d7249ca6ff224
tree326da786f982bca371b4f84f6d9d820f13908299
parentdb6077fd0b7dd41dc6ff18329cec979379071f87
iser-target: Move INIT_WORK setup into isert_create_device_ib_res

This patch moves INIT_WORK setup for cq_desc->cq_[rx,tx]_work into
isert_create_device_ib_res(), instead of being done each callback
invocation in isert_cq_[rx,tx]_callback().

This also fixes a 'INFO: trying to register non-static key' warning
when cancel_work_sync() is called before INIT_WORK has setup the
struct work_struct.

Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Cc: <stable@vger.kernel.org> #3.12+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c