Artem Bityutskiy ddbd3b6170 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>
2009-05-26 12:47:47 +03:00
..
2009-05-26 12:47:47 +03:00
2009-05-18 12:28:25 +03:00
2008-07-24 13:36:09 +03:00
2008-12-28 12:20:51 +02:00
2009-01-18 14:27:44 +02:00
2009-05-18 12:28:25 +03:00
2009-05-18 12:28:25 +03:00
2008-04-17 11:32:00 +03:00
2009-01-27 16:54:41 +02:00
2007-04-27 14:23:33 +03:00
2009-01-18 14:27:44 +02:00
2008-07-24 13:36:09 +03:00
2009-05-18 12:28:25 +03:00
2009-05-18 12:28:26 +03:00
2009-05-18 12:28:26 +03:00