1
0
Fork 0
alistair23-linux/drivers/mtd/ubi
Artem Bityutskiy 12027f1b3f UBI: correct ubi_wl_flush locking
Commit "62f38455 UBI: modify ubi_wl_flush function to clear work queue for a lnum"
takes the 'work_sem' semaphore in write mode for the entire loop, which is not
very good because it will block other workers for potentially long time. We do
not need to have it in write mode - read mode is enough, and we do not need to
hole it over the entire loop. So this patch turns changes the locking: takes
'work_sem' in read mode and pushes it down to the loop.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-06-07 15:22:21 +03:00
..
Kconfig UBI: remove Kconfig debugging option 2012-05-20 20:26:00 +03:00
Makefile UBI: rename scan.c to attach.c 2012-05-20 21:01:28 +03:00
attach.c UBI: add volume id struct ubi_ainf_peb 2012-05-21 11:34:41 +03:00
build.c UBI: move and rename attach_by_scanning 2012-05-20 20:26:04 +03:00
cdev.c UBI: modify ubi_wl_flush function to clear work queue for a lnum 2012-05-21 11:34:41 +03:00
debug.c UBI: fix debugfs-less systems support 2012-06-07 10:43:54 +03:00
debug.h UBI: rename sv to av 2012-05-20 20:26:02 +03:00
eba.c UBI: add lnum and vol_id to struct ubi_work 2012-05-21 11:34:41 +03:00
gluebi.c UBI: Kill data type hint 2012-05-20 20:25:59 +03:00
io.c UBI: amend comments after all the renamings 2012-05-20 20:26:04 +03:00
kapi.c UBI: modify ubi_wl_flush function to clear work queue for a lnum 2012-05-21 11:34:41 +03:00
misc.c mtd: utilize `mtd_is_*()' functions 2011-09-21 09:19:06 +03:00
ubi-media.h UBI: add in hex the value for UBI_INTERNAL_VOL_START to comment 2012-05-20 21:30:45 +03:00
ubi.h UBI: modify ubi_wl_flush function to clear work queue for a lnum 2012-05-21 11:34:41 +03:00
upd.c UBI: modify ubi_wl_flush function to clear work queue for a lnum 2012-05-21 11:34:41 +03:00
vmt.c UBI: modify ubi_wl_flush function to clear work queue for a lnum 2012-05-21 11:34:41 +03:00
vtbl.c UBI: amend comments after all the renamings 2012-05-20 20:26:04 +03:00
wl.c UBI: correct ubi_wl_flush locking 2012-06-07 15:22:21 +03:00