summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/wl.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-23 13:44:09 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-26 12:47:47 +0300
commitddbd3b61708483f73dbcc62a94d16cc7db928cba (patch)
tree7600caa289d1517e8642d6be21d0a0cfe88c40d5 /drivers/mtd/ubi/wl.c
parent95c9c1da79e59fd10ec5da3aeba22981383f7040 (diff)
UBI: fix race condition
This patch fixes a minor problem where we may fail to wake upe the UBI background thread. This is not fatal at all, it may just result at sligtly worse performace for a short period of time, just because the thread will be woken up when real I/O on the UBI starts. Anywey, the issue is the race condition between 'ubi_attach_mtd_dev()' and 'ubi_thread()'. If we do not serialize them, the 'wake_up_process()' call may be done before 'ubi_thread()' went seep, but after it checked 'ubi->thread_enabled'. This issue was spotted by Shin Hong <hongshin@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/wl.c')
0 files changed, 0 insertions, 0 deletions