mtd: blktrans: fix a race vs kthread_stop
authorMaxim Levitsky <maximlevitsky@gmail.com>
Fri, 15 Oct 2010 15:20:45 +0000 (17:20 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 00:28:52 +0000 (01:28 +0100)
commit12aebf3e1ad7dc8b076dd9674ca98f1aa6859fcd
tree545b9655e797629fa3baff874aebb866cd1c67ec
parent480792b7bf188c29b8d4b10fee65c3a06ec5dbf7
mtd: blktrans: fix a race vs kthread_stop

There is small race window that could make kthread_stop hang forever.
I found that while hacking the IR subsystem.

Signed-off-by: Maxim Levitsky <maximlevisky@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtd_blkdevs.c