block: loop: convert to per-device workqueue
authorMing Lei <ming.lei@canonical.com>
Tue, 5 May 2015 11:49:54 +0000 (19:49 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 5 May 2015 19:46:53 +0000 (13:46 -0600)
commitf4aa4c7bbac6c4afdd4adccf90898c1a3685396d
tree9e22cc47f6a22f8536ae40ec76aff6611f0c8414
parent9dc6c806b3c4812619e305685b3c86835bf784ab
block: loop: convert to per-device workqueue

Documentation/workqueue.txt:
If there is dependency among multiple work items used
during memory reclaim, they should be queued to separate
wq each with WQ_MEM_RECLAIM.

Loop devices can be stacked, so we have to convert to per-device
workqueue. One example is Fedora live CD.

Fixes: b5dd2f6047ca108001328aac0e8588edd15f1778
Cc: stable@vger.kernel.org (v4.0)
Cc: Justin M. Forbes <jforbes@fedoraproject.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/loop.c
drivers/block/loop.h