Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment