]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Correct uses of INIT_WORK
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 29 Jan 2014 14:33:52 +0000 (09:33 -0500)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 29 Jan 2014 16:42:32 +0000 (11:42 -0500)
commitf8f0e756a858fd444e0cd937d4919a5cc1a7c4d9
tree41618ec5b7ad6f99456f4dc7c2ddcbeaa2d53e11
parent0f2aeef6869b5721027172f03fe98c05d3db37a5
NVMe: Correct uses of INIT_WORK

We need to initialise the work_struct when we initialise the rest of the
struct nvme_dev, otherwise we'll hit a lockdep warning when we remove
the device.  Use PREPARE_WORK to change the function pointer instead
of INIT_WORK.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c