NFC: Don't use WQ_MEM_RECLAIM for pn533
authorTejun Heo <tj@kernel.org>
Wed, 22 Aug 2012 23:28:46 +0000 (16:28 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 24 Sep 2012 22:17:24 +0000 (00:17 +0200)
NFC driver doesn't sit in memory reclaim path and has no reason to use
WQ_MEM_RECLAIM.  Drop WQ_MEM_RECLAIM from pn533->wq and use
alloc_ordered_workqueue() instead of WQ_UNBOUND w/ max_active == 1.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c

index 7ceea111439b91060689bb4e87bd59e5cdb6424f..d123444404c8629ff189fd047d9c08d9c59bb365 100644 (file)
@@ -2394,9 +2394,7 @@ static int pn533_probe(struct usb_interface *interface,
        INIT_WORK(&dev->mi_work, pn533_wq_mi_recv);
        INIT_WORK(&dev->tg_work, pn533_wq_tg_get_data);
        INIT_WORK(&dev->poll_work, pn533_wq_poll);
-       dev->wq = alloc_workqueue("pn533",
-                                 WQ_NON_REENTRANT | WQ_UNBOUND | WQ_MEM_RECLAIM,
-                                 1);
+       dev->wq = alloc_ordered_workqueue("pn533", 0);
        if (dev->wq == NULL)
                goto error;