]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
UBI: fix ubi_wl_flush
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 18 Dec 2007 13:54:35 +0000 (15:54 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 17:15:16 +0000 (19:15 +0200)
commit593dd33c92c6529443d5df1350dc5cc76511232d
treedda360da5a5f66eb36b55a4c2e8eb985e997ffd6
parent458dbb3d07574e8fcdcb921ac155ccd81b16b05f
UBI: fix ubi_wl_flush

The flush function should finish all the pending jobs. But if
somebody else is doing a work, this function should wait and let
it finish.

This patche uses rw semaphore for synchronization purpose - it
just looks quite convinient.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c