[PATCH RFC 1/5] NVMe: Code cleanup and minor checkpatch correction
Matthew Wilcox
willy at linux.intel.com
Mon Dec 30 08:32:29 EST 2013
On Mon, Dec 30, 2013 at 03:57:16PM +0530, Santosh Y wrote:
> @@ -2120,7 +2120,7 @@ static void nvme_dev_unmap(struct nvme_dev *dev)
>
> struct nvme_delq_ctx {
> struct task_struct *waiter;
> - struct kthread_worker* worker;
> + struct kthread_worker *worker;
> atomic_t refcount;
> };
>
This is fine ...
> @@ -2556,10 +2556,6 @@ static void nvme_remove(struct pci_dev *pdev)
> {
> struct nvme_dev *dev = pci_get_drvdata(pdev);
>
> - spin_lock(&dev_list_lock);
> - list_del_init(&dev->node);
> - spin_unlock(&dev_list_lock);
> -
> pci_set_drvdata(pdev, NULL);
> flush_work(&dev->reset_work);
> misc_deregister(&dev->miscdev);
I'm going to let Keith comment on this before I apply it. There might
be a reason to delete the node from the dev_list here before we call
flush_work().
More information about the Linux-nvme
mailing list