login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
23
Re: [PATCH] Fix a huge latency problem in the MTD CFI and LPDDR flash drivers.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Artem Bityutskiy
Subject:
Re: [PATCH] Fix a huge latency problem in the MTD CFI and LPDDR flash drivers.
Date: Friday, April 23, 2010 - 5:03 am
On Sun, 2010-04-18 at 22:46 +0200, Stefani Seibold wrote:
quoted text
> From: Stefani Seibold <stefani@seibold.net> > > 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 KB (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> > --- > drivers/mtd/chips/cfi_cmdset_0001.c | 131 +++++++++++++++++----------------- > drivers/mtd/chips/cfi_cmdset_0002.c | 122 ++++++++++++++++---------------- > drivers/mtd/chips/cfi_cmdset_0020.c | 136 +++++++++++++++++----------------- > drivers/mtd/chips/fwh_lock.h | 6 +- > drivers/mtd/chips/gen_probe.c | 3 +- > drivers/mtd/lpddr/lpddr_cmds.c | 79 ++++++++++---------- > include/linux/mtd/flashchip.h | 4 +- > 7 files changed, 239 insertions(+), 242 deletions(-)
Pushed to l2-mtd-2.6.git / master. -- Best Regards, Artem Bityutskiy (Артём Битюцкий) --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Fix a huge latency problem in the MTD CFI and LPDD ...
, Stefani Seibold
, (Sun Apr 18, 1:46 pm)
Re: [PATCH] Fix a huge latency problem in the MTD CFI and ...
, Stefani Seibold
, (Tue Apr 20, 11:16 am)
Re: [PATCH] Fix a huge latency problem in the MTD CFI and ...
, Andrew Morton
, (Thu Apr 22, 8:07 pm)
Re: [PATCH] Fix a huge latency problem in the MTD CFI and ...
, Stefani Seibold
, (Thu Apr 22, 11:03 pm)
Re: [PATCH] Fix a huge latency problem in the MTD CFI and ...
, Artem Bityutskiy
, (Fri Apr 23, 5:03 am)
Re: [PATCH] Fix a huge latency problem in the MTD CFI and ...
, Artem Bityutskiy
, (Wed Apr 28, 6:58 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Thomas Gleixner
[ANNOUNCE] 2.6.31-rc6-rt2
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
git
:
Blaisorblade
git-unpack-objects < pack file in repository doesn't work!
Matthieu Moy
Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
Linus Torvalds
Re: Untracked working tree files
Peter Karlsson
Re: CRLF problems with Git on Win32
Johannes Schindelin
Re: [PATCH 4/4] git-rebase -i: New option to support rebase with merges
linux-netdev
:
Alan Menegotto
Re: Linux networking implementation and packet capture
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: [PATCH]: Fix queueing return values...
David Miller
Re: [PATCH 1/2] netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
git-commits-head
:
Linux Kernel Mailing List
Blackfin: don't give CPU its own line in traps output
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
powerpc: gamecube/wii: usbgecko bootwrapper console support
openbsd-misc
:
Aaron Mason
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Christiano Farina Haesbaert
Re: Defending OpenBSD Performance
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate