kernel-ark/drivers/mtd
Stefani Seibold c4e773764c mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers.
The use of a memcpy() during a spinlock operation will cause very long
thread context switch delays if the flash chip bandwidth is low and the
data to be copied large, because a spinlock will disable preemption.

For example: A flash with 6,5 MB/s bandwidth will cause under ubifs,
which request sometimes 128 KiB (the flash erase size), a preemption delay of
20 milliseconds. High priority threads will not be served during this
time, regardless whether this threads access the flash or not. This behavior
breaks real time.

The patch changes all the use of spin_lock operations for xxxx->mutex
into mutex operations, which is exact what the name says and means.

I have checked the code of the drivers and there is no use of atomic
pathes like interrupt or timers. The mtdoops facility will also not be used
by this drivers. So it is dave to replace the spin_lock against mutex.

There is no performance regression since the mutex is normally not
acquired.

Changelog:
 06.03.2010 First release
 26.03.2010 Fix mutex[1] issue and tested it for compile failure

Signed-off-by: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-05-10 14:22:30 +01:00
..
chips mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers. 2010-05-10 14:22:30 +01:00
devices mtd: block2mtd: Use kasprintf 2010-03-18 15:04:09 +00:00
lpddr mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers. 2010-05-10 14:22:30 +01:00
maps mtd/maps/physmap: catch failure to register MTD_PHYSMAP_COMPAT device 2010-04-20 08:53:52 +01:00
nand mtd/nand/fsl_upm: Replace the dangerous to_fsl_upm_nand macro 2010-05-10 14:18:28 +01:00
onenand mtd: OneNAND: OMAP2/3: unmap correct DMA buffer 2010-05-10 14:17:05 +01:00
tests mtd: tests: fix read, speed and stress tests on NOR flash 2010-01-13 09:06:17 +00:00
ubi driver-core: Add attribute argument to class_attribute show/store 2010-03-07 17:04:48 -08:00
afs.c
ar7part.c
cmdlinepart.c
ftl.c mtd: blktrans: Hotplug fixes 2010-02-26 17:05:26 +00:00
inftlcore.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2010-03-26 14:55:59 +00:00
inftlmount.c mtd: inftl: misplaced parenthesis in find_boot_record 2010-02-26 13:22:07 +00:00
internal.h
Kconfig mtd: sm_ftl: remove CONFIG_SM_FTL_MUSEUM and make it always on 2010-03-26 15:28:59 +00:00
Makefile mtd: Add new SmartMedia/xD FTL 2010-02-26 19:06:50 +00:00
mtd_blkdevs.c mtd: blktrans: do blk_cleanup_queue when it is really safe to do so 2010-03-08 18:57:42 -08:00
mtdbdi.c
mtdblock_ro.c mtd: mtdblock: test return value of add_mtd_blktrans_dev, because if can fail 2010-02-26 17:05:46 +00:00
mtdblock.c mtd: Few follow up cleanups for Smartmedia/xD support 2010-02-26 20:13:49 +00:00
mtdchar.c mtdchar: Register the full range of minor numbers 2010-02-25 12:46:04 +00:00
mtdconcat.c
mtdcore.c mtd: call the remove notifiers before assuming it is in use 2010-02-26 17:37:10 +00:00
mtdcore.h mtd: Replace static array of devices with an idr structure 2010-02-25 11:55:14 +00:00
mtdoops.c mtd: Remove unnecessary comparisons with MAX_MTD_DEVICES 2010-02-25 11:39:09 +00:00
mtdpart.c
mtdsuper.c mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd() 2010-02-25 11:38:35 +00:00
nftlcore.c mtd: blktrans: Hotplug fixes 2010-02-26 17:05:26 +00:00
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c mtd: blktrans: Hotplug fixes 2010-02-26 17:05:26 +00:00
sm_ftl.c bitops: rename for_each_bit() to for_each_set_bit(): mtd 2010-04-08 09:42:41 +01:00
sm_ftl.h mtd: Add new SmartMedia/xD FTL 2010-02-26 19:06:50 +00:00
ssfdc.c mtd: blktrans: Hotplug fixes 2010-02-26 17:05:26 +00:00