Skip to content
Snippets Groups Projects
Commit bdfd70fd authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 3193f07b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment