]>
git.hungrycats.org Git - linux/log
Andrew Morton [Wed, 9 Apr 2003 04:30:35 +0000 (21:30 -0700)]
[PATCH] rmap comments
From: Hugh Dickins <hugh@veritas.com>
Update a few locking comments in rmap.c.
Andrew Morton [Wed, 9 Apr 2003 04:30:24 +0000 (21:30 -0700)]
[PATCH] Replace the radix-tree rwlock with a spinlock
Spinlocks don't have a buslocked unlock and are faster.
On a P4, time to write a 4M file with 4M one-byte-write()s:
Before:
0.72s user 5.47s system 99% cpu 6.227 total
0.76s user 5.40s system 100% cpu 6.154 total
0.77s user 5.38s system 100% cpu 6.146 total
After:
1.09s user 4.92s system 99% cpu 6.014 total
0.74s user 5.28s system 99% cpu 6.023 total
1.03s user 4.97s system 100% cpu 5.991 total
Andrew Morton [Wed, 9 Apr 2003 04:30:15 +0000 (21:30 -0700)]
[PATCH] misc rmap speedups
Even a BUG_ON() makes a measurable difference. So remove some gratuitous
ones which will just trigger a null pointer deref anyway.
Also remove some debug code which isn't really being maintained any more.
Also replace (effectively):
test_bit(N, foo);
set_bit(N, foo);
with
set_bit(N, foo);
test_bit(N, foo);
In the first case we'll go onto the bus twice: once for the cache miss and
once to get exclusive write access. In the second case we only go on the bus
once. I think. Certainly this trick chaved 40% off the cost of
shrink_list() when I did it there...
This patch is worth 1% or so on the bash script testing.
Andrew Morton [Wed, 9 Apr 2003 04:30:06 +0000 (21:30 -0700)]
[PATCH] speed up rmap searching
several functions in rmap.c are searching the ptes[] array fo find the first
non-null entry.
Despite the fact tha the whole lot is in L1 cache, it is expensive,
especially on 128-byte cacheline machines.
We can encode the index of the first non-null pte entry inside the
pte_chain's `next' field and remove those searches altogether.
This reduces the rmap CPU tax by about 25% on a P4. For a total runtime
reduction of around 5% in the bash-script intensive test which I use.
Andrew Morton [Wed, 9 Apr 2003 04:29:58 +0000 (21:29 -0700)]
[PATCH] remove nr_reverse_maps VM accounting
Maintaining the `nr_reverse_maps' provides makes a small but
measurable decrease in page_add_rmap() overhead.
I don't think it's a very useful metric, and it can be sort-of inferred from
slabinfo.
Andrew Morton [Wed, 9 Apr 2003 04:29:49 +0000 (21:29 -0700)]
[PATCH] null-terminate the kmalloc tables
From: David Mosberger <davidm@napali.hpl.hp.com>
The cache_sizes array needs to be NULL terminated, otherwise an oversized
kmalloc request runs off the end of the table.
Andrew Morton [Wed, 9 Apr 2003 04:29:39 +0000 (21:29 -0700)]
[PATCH] Enforce gcc-2.95 as the minimum compiler requirement
Now that sparc64 is using gcc-3.x we can disallow gcc-2.91, etc.
Documentation/Changes already says 2.95.3, which is working fine for me.
With this change, we no longer require that per-cpu data definitions be
initialised. That was a workaround for a bug in older gccs. So remove the
build infrastructure which was checking for that.
Also, mention that nfs-utils-1.0.3 is required. It isn't required yet, but
will be once we enable larger dev_t: there is an interface for exportfs which
passes dev_t's into the kernel which breaks with larger dev_t. That
interface is old, deprecated and is not used in nfs-utils-1.0.3.
Andrew Morton [Wed, 9 Apr 2003 04:29:30 +0000 (21:29 -0700)]
[PATCH] fix wait_on_buffer() debug code
The wait_on_buffer() debug code is generating false warnings when called from
__block_prepare_write(). It is legal to wait on a zero-ref buffer when its
page is locked. The page lock keeps try_to_free_buffers() away.
This debug code hasn't found any bugs yet.
Linus Torvalds [Wed, 9 Apr 2003 04:23:58 +0000 (21:23 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
Linus Torvalds [Wed, 9 Apr 2003 04:16:17 +0000 (21:16 -0700)]
Add user pointer attributes to kernel/sys.c
Linus Torvalds [Wed, 9 Apr 2003 04:15:49 +0000 (21:15 -0700)]
User pointers are not just in another address space, they also
must never be dereferenced directly. Make that clear in the
attribute.
Linus Torvalds [Tue, 8 Apr 2003 15:45:40 +0000 (08:45 -0700)]
Annotate x87 user space access functions with proper type attributes.
Linus Torvalds [Tue, 8 Apr 2003 15:31:48 +0000 (08:31 -0700)]
Annotate fs/namei.c with user pointer annotations.
Linus Torvalds [Tue, 8 Apr 2003 15:26:32 +0000 (08:26 -0700)]
Annotate fs/exec.c with user pointer annotations.
Linus Torvalds [Tue, 8 Apr 2003 15:17:56 +0000 (08:17 -0700)]
Add user pointer attributes to kernel/module.c
Linus Torvalds [Tue, 8 Apr 2003 14:33:49 +0000 (07:33 -0700)]
Annotate i386/signal.c with address space type annotations.
Linus Torvalds [Tue, 8 Apr 2003 10:22:48 +0000 (03:22 -0700)]
Annotate scheduler system calls as taking user pointers.
Rusty Russell [Tue, 8 Apr 2003 10:18:46 +0000 (03:18 -0700)]
[IPSEC]: Avoid using SET_MODULE_OWNER.
Linus Torvalds [Tue, 8 Apr 2003 10:14:26 +0000 (03:14 -0700)]
Make __SI_MASK explicitly unsigned, instead of depending on
magic C promotion to silently do so for us.
Linus Torvalds [Tue, 8 Apr 2003 10:13:12 +0000 (03:13 -0700)]
Add __user attributes to user pointers in kernel/signal.c. This
was the first file tested with my type checker with the anal
pointer attribute checking turned on.
Linus Torvalds [Tue, 8 Apr 2003 10:11:49 +0000 (03:11 -0700)]
Add the proper sprinkling of __user attributes to the
user space access functions. This allows the type checker
to check proper usage.
Linus Torvalds [Tue, 8 Apr 2003 10:10:42 +0000 (03:10 -0700)]
Add __user/__kernel address space modifiers. When not
checking, these end up being no-ops, but they get enabled
by the type checker as special address_space attributes.
Stephen Hemminger [Tue, 8 Apr 2003 10:09:45 +0000 (03:09 -0700)]
[VLAN]: Update to new module semantics, use synchronize_net.
James Morris [Tue, 8 Apr 2003 09:16:17 +0000 (02:16 -0700)]
[IPSEC]: Support for optional policies on input got lost.
Linus Torvalds [Tue, 8 Apr 2003 05:33:12 +0000 (22:33 -0700)]
Fix mtdblock.c compile. From Adrian Bunk.
Andrew Morton [Tue, 8 Apr 2003 05:31:46 +0000 (22:31 -0700)]
[PATCH] Fix futexes in hugetlb pages
There is a stunning bug.
Miles Bader [Tue, 8 Apr 2003 05:25:26 +0000 (22:25 -0700)]
[PATCH] On the v850/nb85e, acknowledge interrupts immediately after handling them
Previously, it was done automatically by the `reti' isntruction upon
returning from the kernel, but that doesn't do the correct thing in
various cases, for instance if there's a context switch, or a softirq.
Andries E. Brouwer [Tue, 8 Apr 2003 04:59:22 +0000 (21:59 -0700)]
[PATCH] tty_io.c: make redirect static
Andries E. Brouwer [Tue, 8 Apr 2003 04:59:14 +0000 (21:59 -0700)]
[PATCH] kafstimod.c fix: make timeouts unsigned long
Andries E. Brouwer [Tue, 8 Apr 2003 04:59:04 +0000 (21:59 -0700)]
[PATCH] krxtimod.c fix: make timeouts unsigned long
Andries E. Brouwer [Tue, 8 Apr 2003 04:58:55 +0000 (21:58 -0700)]
[PATCH] paride fix: make timeouts unsigned long
Linus Torvalds [Tue, 8 Apr 2003 04:19:19 +0000 (21:19 -0700)]
More left-over fixups from the merge with Alan.
Linus Torvalds [Tue, 8 Apr 2003 03:46:46 +0000 (20:46 -0700)]
Fix up merge with Alan.
Alan Cox [Tue, 8 Apr 2003 02:47:11 +0000 (19:47 -0700)]
[PATCH] make APM machine independant using mach headers
Alan Cox [Tue, 8 Apr 2003 02:47:02 +0000 (19:47 -0700)]
[PATCH] make vm86 machine independant using new headers
Alan Cox [Tue, 8 Apr 2003 02:46:53 +0000 (19:46 -0700)]
[PATCH] use mach io_ports definitions in io_apic
Allows for the non standard cascade
Alan Cox [Tue, 8 Apr 2003 02:46:44 +0000 (19:46 -0700)]
[PATCH] suspend doesnt need compatmac either
Alan Cox [Tue, 8 Apr 2003 02:46:36 +0000 (19:46 -0700)]
[PATCH] last batch of audio C99
Alan Cox [Tue, 8 Apr 2003 02:46:25 +0000 (19:46 -0700)]
[PATCH] sync opl3sa2 with 2.4
Alan Cox [Tue, 8 Apr 2003 02:46:16 +0000 (19:46 -0700)]
[PATCH] yet more sound version/c99
Alan Cox [Tue, 8 Apr 2003 02:46:06 +0000 (19:46 -0700)]
[PATCH] ite C99 and version/h
Alan Cox [Tue, 8 Apr 2003 02:45:58 +0000 (19:45 -0700)]
[PATCH] fix ; in mad16
Alan Cox [Tue, 8 Apr 2003 02:45:49 +0000 (19:45 -0700)]
[PATCH] ics2101 needs to match the gus_lock name too
Alan Cox [Tue, 8 Apr 2003 02:45:41 +0000 (19:45 -0700)]
[PATCH] another C99 and version casd
Alan Cox [Tue, 8 Apr 2003 02:45:31 +0000 (19:45 -0700)]
[PATCH] fix modular gus shared lock
Alan Cox [Tue, 8 Apr 2003 02:45:22 +0000 (19:45 -0700)]
[PATCH] lots more version and C99 for audio
Alan Cox [Tue, 8 Apr 2003 02:45:13 +0000 (19:45 -0700)]
[PATCH] C99 for sound
Alan Cox [Tue, 8 Apr 2003 02:45:05 +0000 (19:45 -0700)]
[PATCH] cs4232 should be devexit
Alan Cox [Tue, 8 Apr 2003 02:44:56 +0000 (19:44 -0700)]
[PATCH] more audiov ersion scrubbing
Alan Cox [Tue, 8 Apr 2003 02:44:48 +0000 (19:44 -0700)]
[PATCH] small pc98xx fix for sound
Alan Cox [Tue, 8 Apr 2003 02:44:38 +0000 (19:44 -0700)]
[PATCH] remove version.h's
Alan Cox [Tue, 8 Apr 2003 02:44:28 +0000 (19:44 -0700)]
[PATCH] irda typo fixes
Alan Cox [Tue, 8 Apr 2003 02:44:19 +0000 (19:44 -0700)]
[PATCH] wireless uses __init
Alan Cox [Tue, 8 Apr 2003 02:44:10 +0000 (19:44 -0700)]
[PATCH] remove version crap
Alan Cox [Tue, 8 Apr 2003 02:44:01 +0000 (19:44 -0700)]
[PATCH] shared multimedia includes for saa71xx
Alan Cox [Tue, 8 Apr 2003 02:43:54 +0000 (19:43 -0700)]
[PATCH] lock for scc drivers
Alan Cox [Tue, 8 Apr 2003 02:43:46 +0000 (19:43 -0700)]
[PATCH] continued compatmac exterminations
Alan Cox [Tue, 8 Apr 2003 02:43:39 +0000 (19:43 -0700)]
[PATCH] hdreg.h typo fix
Alan Cox [Tue, 8 Apr 2003 02:43:30 +0000 (19:43 -0700)]
[PATCH] possible way to clean up fdreg.h
Alan Cox [Tue, 8 Apr 2003 02:43:22 +0000 (19:43 -0700)]
[PATCH] update dvb headers
Alan Cox [Tue, 8 Apr 2003 02:43:15 +0000 (19:43 -0700)]
[PATCH] goodbye compatmac.h
Alan Cox [Tue, 8 Apr 2003 02:43:06 +0000 (19:43 -0700)]
[PATCH] x86-64 typo fixes
(Steven Cole)
Alan Cox [Tue, 8 Apr 2003 02:42:58 +0000 (19:42 -0700)]
[PATCH] header for pc9800 type detection
Alan Cox [Tue, 8 Apr 2003 02:42:50 +0000 (19:42 -0700)]
[PATCH] and voyager
Alan Cox [Tue, 8 Apr 2003 02:42:41 +0000 (19:42 -0700)]
[PATCH] and visws
Alan Cox [Tue, 8 Apr 2003 02:42:33 +0000 (19:42 -0700)]
[PATCH] add the same mach specific headers for pc9800
Alan Cox [Tue, 8 Apr 2003 02:42:23 +0000 (19:42 -0700)]
[PATCH] add but do not yet use mach specific definitions for ports etc on PC
Alan Cox [Tue, 8 Apr 2003 02:42:15 +0000 (19:42 -0700)]
[PATCH] asm-alpha typo fixe
(Steven Cole)
Alan Cox [Tue, 8 Apr 2003 02:42:06 +0000 (19:42 -0700)]
[PATCH] compatmac is not needed
Alan Cox [Tue, 8 Apr 2003 02:41:58 +0000 (19:41 -0700)]
[PATCH] compatmac is not needed
Alan Cox [Tue, 8 Apr 2003 02:41:50 +0000 (19:41 -0700)]
[PATCH] junk header removal
Alan Cox [Tue, 8 Apr 2003 02:41:42 +0000 (19:41 -0700)]
[PATCH] first pass at fixing strip for 2.5
Alan Cox [Tue, 8 Apr 2003 02:41:33 +0000 (19:41 -0700)]
[PATCH] fix cosa verify_area
Alan Cox [Tue, 8 Apr 2003 02:41:26 +0000 (19:41 -0700)]
[PATCH] update slip to new tty module locks
Alan Cox [Tue, 8 Apr 2003 02:41:17 +0000 (19:41 -0700)]
[PATCH] first cut at 3c574_cs for SMP safety etc
The old code was totally hosed for SMP, the windowing makes this
stuff tricky so it may need more work
Alan Cox [Tue, 8 Apr 2003 02:41:09 +0000 (19:41 -0700)]
[PATCH] fix macmace get_free_pages parameters
(Matthew Wilcox)
Alan Cox [Tue, 8 Apr 2003 02:41:01 +0000 (19:41 -0700)]
[PATCH] Update lp486e for 2.5
Alan Cox [Tue, 8 Apr 2003 02:40:54 +0000 (19:40 -0700)]
[PATCH] fix up yam for 2.5 locking
Alan Cox [Tue, 8 Apr 2003 02:40:46 +0000 (19:40 -0700)]
[PATCH] first cut at scc.c for 2.5 locking
Alan Cox [Tue, 8 Apr 2003 02:40:38 +0000 (19:40 -0700)]
[PATCH] fix arcnet locking for 2.5
Alan Cox [Tue, 8 Apr 2003 02:40:30 +0000 (19:40 -0700)]
[PATCH] port ltpc to 2.5
Alan Cox [Tue, 8 Apr 2003 02:40:22 +0000 (19:40 -0700)]
[PATCH] fix error in cops port to 2.5
Alan Cox [Tue, 8 Apr 2003 02:40:13 +0000 (19:40 -0700)]
[PATCH] remaining dvb bits
Alan Cox [Tue, 8 Apr 2003 02:40:04 +0000 (19:40 -0700)]
[PATCH] bring core media/video up to date with dvb changes
Alan Cox [Tue, 8 Apr 2003 02:39:56 +0000 (19:39 -0700)]
[PATCH] fix radio-cadet build
Alan Cox [Tue, 8 Apr 2003 02:39:47 +0000 (19:39 -0700)]
[PATCH] kill off a load of stuff now in common dvb
(These changes are big because they are the result of Martin Hunold
resolving a *huge* long term fork in the DVB code base). We now have
one DVB codebase so the changes while big are very good news
Alan Cox [Tue, 8 Apr 2003 02:39:35 +0000 (19:39 -0700)]
[PATCH] update the dvb front end chips
(Again all DVB is Martin Hunold)
Alan Cox [Tue, 8 Apr 2003 02:38:45 +0000 (19:38 -0700)]
[PATCH] update the dvb core
Alan Cox [Tue, 8 Apr 2003 02:38:36 +0000 (19:38 -0700)]
[PATCH] add drivers/media/common for mixed dvb/analog device stuff
(Martin Hunold)
Alan Cox [Tue, 8 Apr 2003 02:38:28 +0000 (19:38 -0700)]
[PATCH] fix up capslock on pc9800
Alan Cox [Tue, 8 Apr 2003 02:38:19 +0000 (19:38 -0700)]
[PATCH] fix our handling of BIOS forced PIO serverworks OSB4
(Robert Hentosh & me)
Alan Cox [Tue, 8 Apr 2003 02:38:11 +0000 (19:38 -0700)]
[PATCH] clean up pci interrupt line whacking
Alan Cox [Tue, 8 Apr 2003 02:38:01 +0000 (19:38 -0700)]
[PATCH] error handling for upd4990a
(Stephan Maciej)
Alan Cox [Tue, 8 Apr 2003 02:37:54 +0000 (19:37 -0700)]
[PATCH] exterminate compatmac in sx
(compatmac cleanup is all Adrian Bunk)
Alan Cox [Tue, 8 Apr 2003 02:37:45 +0000 (19:37 -0700)]
[PATCH] update char Kconfig for PC9800
Alan Cox [Tue, 8 Apr 2003 02:37:38 +0000 (19:37 -0700)]
[PATCH] unversion.h and compatmac applicom.c
Alan Cox [Tue, 8 Apr 2003 02:37:29 +0000 (19:37 -0700)]
[PATCH] makefile for pc9800
Alan Cox [Tue, 8 Apr 2003 02:37:21 +0000 (19:37 -0700)]
[PATCH] MOD_* can go for floppy
(Bob Miller)
Alan Cox [Tue, 8 Apr 2003 02:37:13 +0000 (19:37 -0700)]
[PATCH] config for PC98xx floppy
Alan Cox [Tue, 8 Apr 2003 02:37:03 +0000 (19:37 -0700)]
[PATCH] PC9800 floppy driver
(Osamu Tomita)