https://github.com/torvalds/linux
Revision 12027f1b3fd69a4e9017e6b13c72547a99c6cf54 authored by Artem Bityutskiy on 07 June 2012, 12:15:30 UTC, committed by Artem Bityutskiy on 07 June 2012, 12:22:21 UTC
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>
1 parent 818039c
History
Tip revision: 12027f1b3fd69a4e9017e6b13c72547a99c6cf54 authored by Artem Bityutskiy on 07 June 2012, 12:15:30 UTC
UBI: correct ubi_wl_flush locking
Tip revision: 12027f1
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.3 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 207.3 KB
Makefile -rw-r--r-- 46.0 KB
README -rw-r--r-- 17.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top