mtd_blkdevs: Add background processing support
authorJarkko Lavinen <jarkko.lavinen@nokia.com>
Mon, 14 Feb 2011 14:16:09 +0000 (16:16 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:46 +0000 (14:22 +0000)
commitc7519dbf6f4b4408229d279d799c938ffdd06f21
tree77952c980c6a744b8f318a4514f30cfb26a9d4df
parent13ce77f46c79a3839e4c2ff9722c9416c165f498
mtd_blkdevs: Add background processing support

Add a new background method into mtd_blktrans_ops, add background support
into mtd_blktrans_thread(), and add mtd_blktrans_cease_background().

If the mtd blktrans dev has the background support, the thread will
call background function when the request queue becomes empty. The background
operation may run as long as needs to until
mtd_blktrans_cease_background() tells to stop.

Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Tested-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtd_blkdevs.c
include/linux/mtd/blktrans.h