]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4942273fa500a5c04fc3fb99e0d5614d7792218
tree326da786f982bca371b4f84f6d9d820f13908299
parent8d54e205d34d9efc8343c81c6808b6f755d8c30b
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