mtd: mtd_blkdevs: Replace request handler kthread with a workqueue
authorEzequiel Garcia <elezegarcia@gmail.com>
Sat, 10 Nov 2012 16:08:20 +0000 (13:08 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 21 Nov 2012 15:02:23 +0000 (17:02 +0200)
By replacing a kthread with a workqueue, the code is now a bit clearer.
There's also a slight reduction of code size (numbers apply for x86):
Before:
   text    data     bss     dec     hex filename
   3248      36       0    3284     cd4 drivers/mtd/mtd_blkdevs.o

After:
   text    data     bss     dec     hex filename
   3150      36       0    3186     c72 drivers/mtd/mtd_blkdevs.o

Due to lack of real hardware, tests have been performed on an emulated
environment with mtdswap and mtdblock over nandsim devices.
Some real testing should be done, before merging this patch.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

No differences found