]> err.no Git - linux-2.6/commit
CHIPS: Fix potential starvation in cfi_cmdset_0001
authorJosh Boyer <jdub@us.ibm.com>
Tue, 6 Dec 2005 17:28:19 +0000 (17:28 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 17 May 2006 00:11:17 +0000 (01:11 +0100)
commitdf54b52c411befdcf1d0989f939a49163570ad29
treee51dbc7a88da164ed1ab6b29273ae01d2faf4025
parentba9627b85fcb5ed67285ca0711f0f4d1e965746e
CHIPS: Fix potential starvation in cfi_cmdset_0001

The patch below fixes a potential starvation issue that can arise when
there is contention on a chip during a period when a process is
currently writing to it.  The starvation is avoided by conditionally
rescheduling when the chip is left in a state usable by other processes.

Signed-off-by: Josh Boyer <jdub@us.ibm.com>
Signed-off-by: Tom Gall <tom_gall@vnet.ibm.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/chips/cfi_cmdset_0001.c