]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] ppc64: viodasd integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:11 +0000 (05:18 -0700)]
[PATCH] ppc64: viodasd integration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: iseries_veth integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:00 +0000 (05:18 -0700)]
[PATCH] ppc64: iseries_veth integration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: vio infrastructure modifications
Stephen Rothwell [Tue, 29 Jun 2004 12:17:49 +0000 (05:17 -0700)]
[PATCH] ppc64: vio infrastructure modifications

The intention here is to have no effect on pSeries except:

1) vio_register_device is renamed to vio_register_device_node to better
   reflect is purpose and to allow me to introduce
   vio_register_device_iseries.

2) I have introduced the name and type fields in struct vio_dev to make
   these two fields independent of subarchitecture.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] PCDP console detection support fixes
Bjorn Helgaas [Tue, 29 Jun 2004 12:17:38 +0000 (05:17 -0700)]
[PATCH] PCDP console detection support fixes

Check for ioremap failure and use correct UPIO_{MEM,PORT} constants.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CREDITS update
Luiz Capitulino [Tue, 29 Jun 2004 12:17:26 +0000 (05:17 -0700)]
[PATCH] CREDITS update

Luiz has ~40 patches to his name, go he gets a banana.

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix to microcode driver for the old CPUs.
Tigran Aivazian [Tue, 29 Jun 2004 12:17:15 +0000 (05:17 -0700)]
[PATCH] fix to microcode driver for the old CPUs.

Here is a patch against Linux 2.6.7 which fixes the sigmatch() macro to
work for the relatively old processors as well, which have 'pf == 0'
(processor flags as read from MSR 0x17), For example, the processors
failing without this patch are Pentium II 300 MHz (Klamath) with
family/model/stepping 6/3/4 and 6/3/3.

The patch also contains minor cosmetic changes (to make source code more
uniform).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbcon: fix display artifacts
Antonino Daplas [Tue, 29 Jun 2004 12:17:04 +0000 (05:17 -0700)]
[PATCH] fbcon: fix display artifacts

Fixed display artifacts present in the space reserved for the boot logo.
Use attributes of the background erase character instead of hardcoding the
color to zero.

Signed-off-by: Antonino A. Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] watchdog: indydog.c update
Wim Van Sebroeck [Tue, 29 Jun 2004 12:16:52 +0000 (05:16 -0700)]
[PATCH] watchdog: indydog.c update

<wim@iguana.be> (04/06/27 1.1770)
   [WATCHDOG] indydog.c-patch-20040627

   * Fix: since we use the new module_param's: make sure that
   linux/moduleparam.h stays included
   * in the release code we can just use indydog_stop();

The ChangeSets can also be looked at on:
http://linux-watchdog.bkbits.net:8080/linux-2.6-watchdog

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Provide console_suspend() and console_resume()
Russell King [Tue, 29 Jun 2004 12:16:41 +0000 (05:16 -0700)]
[PATCH] Provide console_suspend() and console_resume()

Add console_stop() and console_start() methods so the serial drivers
can disable console output before suspending a port, and re-enable output
afterwards.

We also add locking to ensure that we synchronise with any in-progress
printk.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Provide console_device()
Russell King [Tue, 29 Jun 2004 12:16:30 +0000 (05:16 -0700)]
[PATCH] Provide console_device()

[This patch series has also been separately sent to the architecture
 maintainers]

Add console_device() to return the console tty driver structure and the
index.  Acquire the console lock while scanning the list of console drivers
to protect us against console driver list manipulations.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Translate Japanese comments in arch/v850
Kalin Rumenov Kozhuharov [Tue, 29 Jun 2004 12:16:19 +0000 (05:16 -0700)]
[PATCH] Translate Japanese comments in arch/v850

Convert the Japanese comments in arch/v850.

I am not exactly 100% sure I translated it correctly since I have no idea
what exactly was that NEC v850 evaluation board, but should be OK (say 95%
sure).

Acked by Miles Bader <miles@lsi.nec.co.jp>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] binfmt misc fd passing via ELF aux vector
Yoav Zach [Tue, 29 Jun 2004 12:16:08 +0000 (05:16 -0700)]
[PATCH] binfmt misc fd passing via ELF aux vector

The proposed patch uses the aux-vector to pass the fd of the open misc
binary to the interpreter, instead of using argv[1] for that purpose.

Previous patch - open_nonreadable_binaries, offered the option of
binfmt_misc opening the binary on behalf of the interpreter.  In case
binfmt_misc is requested to do that it would pass the file-descriptor of
the open binary to the interpreter as its second argument (argv[1]).  This
method of passing the file descriptor was suspected to be problematic,
since it changes the command line that users expect to see when using tools
such as 'ps' and 'top'.

The proposed patch changes the method of passing the fd of the open binary
to the translator.  Instead of passing it as an argument, binfmt_misc will
request the ELF loader to pass it as a new element in the aux-vector that
it prepares on the stack for ELF interpreter.  With this patch, argv[1]
will hold the full path to the binary regardless of whether it opened it or
not.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix deadlocks when oopsing while mmap_sem is held
Andy Whitcroft [Tue, 29 Jun 2004 12:15:56 +0000 (05:15 -0700)]
[PATCH] ppc64: fix deadlocks when oopsing while mmap_sem is held

If a fault in the kernel leads to an unexpected protection fault whilst in
a code path which holds mmap_sem we will deadlock in do_page_fault() while
trying to classify the fault.  By carefully testing the source of the fault
we can detect and OOPS on the vast majority of these, greatly enhancing
diagnosis of such bugs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64 .init.setup alignment fix
Andrew Morton [Tue, 29 Jun 2004 12:15:45 +0000 (05:15 -0700)]
[PATCH] x86_64 .init.setup alignment fix

We're now putting 24-byte structures into .init.setup via __setup.  But
x86_64's compiler is emitting a `.align 16' in there, so they end up on
32-byte boundaries and do_early_param()'s pointer arithmetic goes wrong.

Fix that up by forcing the compiler to align these structures to sizeof(long).

Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Tue, 29 Jun 2004 12:06:07 +0000 (05:06 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Tue, 29 Jun 2004 12:05:05 +0000 (05:05 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 29 Jun 2004 12:03:55 +0000 (05:03 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] ia64: Quiet corrected errors (CMC/CPE)
Hidetoshi Seto [Tue, 29 Jun 2004 11:17:11 +0000 (04:17 -0700)]
[PATCH] ia64: Quiet corrected errors (CMC/CPE)

Trivial patch to quiet messages about corrected errors.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoia64: Fix UP-build breakage caused by early_console_setup() patch.
David Mosberger [Tue, 29 Jun 2004 10:47:08 +0000 (03:47 -0700)]
ia64: Fix UP-build breakage caused by early_console_setup() patch.

22 years ago[BRIDGE]: Fix message age in bridge STP config packets.
Stephen Hemminger [Tue, 29 Jun 2004 09:14:15 +0000 (02:14 -0700)]
[BRIDGE]: Fix message age in bridge STP config packets.

This is a revised version of Kishore's patch to set message age appropriately
in STP configuration packets.

Signed-off-by: Kishore A K <KishoreAK@myw.ltindia.com>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: fix reloc-out-of-range error on module loading
Tony Luck [Tue, 29 Jun 2004 08:52:46 +0000 (01:52 -0700)]
[PATCH] ia64: fix reloc-out-of-range error on module loading

I'm hitting this problem because the module I want to load was
compiled with -g, so the filesize is absolutely huge.  kernel/module.c
does a vmalloc() to inhale the entire file, and then two calls to
module_alloc() (which calls vmalloc() on ia64) to load the 'init' and
'core' sections. The 'init' is small and slips into a gap early in the
vmalloc playspace, while the 'core' area is allocated after the huge
area that was allocated for the inhaled copy of the whole file.

I made a one coding change to Jean-Marc's version, adding a check to
see whether the init/core sections are close enough together for the
PCREL21B to reach (they almost always are).

I've kept the test that there are no jumps from core to init (though
the message that is printed is almost as unhelpful as the one that you
get when you statically link a module into the kernel that has calls
to the discarded .exit section :-)

This patch stalled out before on the question of whether a PLT was
overkill for a section-to-section branch, and whether it would be
better to use relaxation techniques to extend the range.  Doing that
might be more elegant in some way, but it needs a whole heap of extra
code (to count how many relaxed branches need to be added and
allocated them as needed).  This seems a lot of extra code that is
only ever going to be exercised by maniacs like me with 49MB .ko
files.

I fixed up the comments to be a little more heplful.

Signed-off-by: <tony.luck@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoCset exclude: dtor_core@ameritech.net|ChangeSet|20040629212548|46753
David S. Miller [Tue, 29 Jun 2004 08:16:23 +0000 (01:16 -0700)]
Cset exclude: dtor_core@ameritech.net|ChangeSet|20040629212548|46753

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 29 Jun 2004 07:49:04 +0000 (00:49 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/usb-2.6

22 years ago[PATCH] ia64: update early printk for new console driver
Jesse Barnes [Tue, 29 Jun 2004 07:47:36 +0000 (00:47 -0700)]
[PATCH] ia64: update early printk for new console driver

The Altix console driver has been replaced in Andrew's tree by a new
one that uses the serial core API.  Update the early_console_setup
routine to use the new config option so that it's ready when the
driver hits Linus' tree.  This will also fix a build bug since the old
driver hasn't been updated.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PKT_SCHED]: Use get_jiffies_64()
Stephen Hemminger [Tue, 29 Jun 2004 07:45:35 +0000 (00:45 -0700)]
[PKT_SCHED]: Use get_jiffies_64()

The packet scheduler simulates 64 bit jiffies on 32 bit platforms by running
a timer keeping a mark and and offset.  Since there is no locking and this is
racy and doesn't handle jiffie wrap real well.

We can use get_jiffies_64 on 2.6 do get what is needed.
The downside is the overhead of a function call, and a cache miss in
get_jiffies_64.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Eliminate guard from TDIFF_SAFE.
Stephen Hemminger [Tue, 29 Jun 2004 07:40:01 +0000 (00:40 -0700)]
[PKT_SCHED]: Eliminate guard from TDIFF_SAFE.

The last argument in the PSCHED_TDIFF_SAFE is no longer used;
only usage eliminated by previous patch. It gets rid of a bad macro
usage.

Also, can use the standard min_t macro which also eliminates the
macro problem of double evaluation of bound.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Bad TDIFF_SAFE in csz.
Stephen Hemminger [Tue, 29 Jun 2004 07:38:31 +0000 (00:38 -0700)]
[PKT_SCHED]: Bad TDIFF_SAFE in csz.

This code in the csz scheduler, is just plain broken.  The TDIFF_SAFE
effectively expands to:
unsigned long delay = now - q->t_c;
if (delay > 0) {
delay = 0;
goto do_reset;
}
if (delay >> q->delta_log)

So delay is always 0!  I assume that what was originally intended
is the to keep delay bounded to 1<<q->delta_log.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: fix incorrect initialization of ar.k4 for BP
Kenneth W. Chen [Tue, 29 Jun 2004 07:36:05 +0000 (00:36 -0700)]
[PATCH] ia64: fix incorrect initialization of ar.k4 for BP

The patch to move the current pointer for init_task from region 7 to
region 5 inadvertendly caused ar.k4 (CURRENT_STACK) to be initialized
improperly for the bootstrap processor.  Fix this by initializing it
to -1.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agosparse: fix pointer/integer confusion
Linus Torvalds [Tue, 29 Jun 2004 07:35:41 +0000 (00:35 -0700)]
sparse: fix pointer/integer confusion

I don't think we're in K&R any more, Toto.

If you want a NULL pointer, use NULL. Don't use an integer.

Most of the users really didn't seem to know the proper type.

22 years agoUSB: fix bug where removing usb-serial modules or usb serial devices could oops
Greg Kroah-Hartman [Tue, 29 Jun 2004 07:33:28 +0000 (00:33 -0700)]
USB: fix bug where removing usb-serial modules or usb serial devices could oops

This fixes the issue where the Generic driver would bind to all usb-serial
devices, so the disconnect would not properly go to the real driver that
controlled the device.  This was very bad when unloading the module with
the device still connected.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PKT_SCHED]: Packet scheduler exports.
Stephen Hemminger [Tue, 29 Jun 2004 07:27:19 +0000 (00:27 -0700)]
[PKT_SCHED]: Packet scheduler exports.

The packet scheduling code has some ugly define's which were to deal with
configuration possibilities and the old style module exports.  With the current
2.6 method, this is unnecessary.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Compile warning and logic rearrangement in sch_prio enqueue.
Dmitry Torokhov [Tue, 29 Jun 2004 07:25:48 +0000 (00:25 -0700)]
[PKT_SCHED]: Compile warning and logic rearrangement in sch_prio enqueue.

When CONFIG_NET_CLS_ACT is not set 'result' variable in prio_classify is
unused. Also I was looking over the rest of the module and had hard time
understanding the logic in prio_enqueue - I rearranged it a bit for better
readability. Plus there are some formatting changes.

Signed-off-by: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: Clean up needlessly large stack frames in PAL-call stubs
Kenneth W. Chen [Tue, 29 Jun 2004 07:25:14 +0000 (00:25 -0700)]
[PATCH] ia64: Clean up needlessly large stack frames in PAL-call stubs

The code allocated all 96 stacked registers, for no apparent reason.

Also, fix ia64_pal_call_static() to switch RSE to enforced-lazy, LE
mode before the PAL-call.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[NET]: Two tc action fixes.
Jamal Hadi Salim [Tue, 29 Jun 2004 07:20:59 +0000 (00:20 -0700)]
[NET]: Two tc action fixes.

Another patchlet after turning on preempt and rerunning tests.
- against dev.c is a genuine bug - i wish preempt would have
given a more sane hint. Strange on how its a non issue when preempt is
off.
- against act_api.c is just an annoyance. I removed the kmod because it
will only make sense to list actions if policies exist for that action.
And if policies exist, the module would be loaded.

Signed-off-by: Jamal Hadi Salim <hadi@zynx.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NETFILTER]: Fix IP_NF_TARGET_NOTRACK config deps.
Patrick McHardy [Tue, 29 Jun 2004 07:18:21 +0000 (00:18 -0700)]
[NETFILTER]: Fix IP_NF_TARGET_NOTRACK config deps.

22 years ago[PATCH] ia64: change ia64_switch_mode_{phys,virt}() to preserve bsp/sp
Kenneth W. Chen [Tue, 29 Jun 2004 07:14:57 +0000 (00:14 -0700)]
[PATCH] ia64: change ia64_switch_mode_{phys,virt}() to preserve bsp/sp

Change ia64_switch_mode_phys() and ia64_switch_mode_virt() to preserve
the virtual sp/bsp and update the call-sites accordingly.  This avoids
problems with the init_task pointer which lives in region 5 now.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] ia64: Don't use -mtune=merced for gcc 3.4
H. J. Lu [Tue, 29 Jun 2004 06:33:25 +0000 (23:33 -0700)]
[PATCH] ia64: Don't use -mtune=merced for gcc 3.4

Gcc 3.4 has a new DFA scheduler for ia64. Unfortunately, it is not
well tested for Itanium 1. When I tried to use gcc 3.4 to compile
2.6 kernel configured for Merced, gcc failed in many places:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15598
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15653
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15655
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16130
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16142
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16143

Some of them have been fixed. But I am afraid many more remain. I don't
know how many Itanium 1 machines left in production use. If people want
to optimize kernel for Itanium 1, they can stick with the older gccs.
Or they should upgrade their machines. I think the gcc developer's time
should be better spent on somewhere else. I have been using this patch
for a while, kernel seems to work OK.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] ia64: fix a couple of comment typos
Bjorn Helgaas [Tue, 29 Jun 2004 06:26:39 +0000 (23:26 -0700)]
[PATCH] ia64: fix a couple of comment typos

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] ia64: define cpu_logical_id() always
Bjorn Helgaas [Tue, 29 Jun 2004 05:57:11 +0000 (22:57 -0700)]
[PATCH] ia64: define cpu_logical_id() always

Define cpu_logical_id() even when !SMP.  I added uses of this in some
iosapic printk's, which broke the UP build.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Tue, 29 Jun 2004 05:31:29 +0000 (22:31 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PATCH] USB Storage: Unusual_devs.h update
Alan Stern [Tue, 29 Jun 2004 02:50:46 +0000 (19:50 -0700)]
[PATCH] USB Storage: Unusual_devs.h update

On Sat, 26 Jun 2004, Edward C. Bailey wrote:

> Hello,
>
>     I was downloading some pictures from my Digital Wallet to my Fedora
> Core 2 system at the same time I happened to be watching
> /var/log/messages.  Here's what I saw:
>
> Jun 26 12:16:02 raptor kernel: usb 1-1.2: new full speed USB device using address 6
> Jun 26 12:16:02 raptor kernel: usb-storage: This device (097a,0001,0001 S 06 P 01) has unneeded SubClass and Protocol entries in unusual_devs.h
> Jun 26 12:16:02 raptor kernel:    Please send a copy of this message to <linux-usb-devel@lists.sourceforge.net>
>
> Given that Minds@Work are out of business, you might not care about this
> information, but I thought I'd pass it on, just in case you do... :-)

What the heck, we'll use it anyway.  Thanks for sending this in.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: Fix pegasus_set_multicast lockup in drivers/usb/net/pegasus.c
Herbert Xu [Tue, 29 Jun 2004 02:49:30 +0000 (19:49 -0700)]
[PATCH] USB: Fix pegasus_set_multicast lockup in drivers/usb/net/pegasus.c

I strongly recommend that this patch be applied.

Without this patch, running tcpdump on an SMP machine with the
pegasus adapter locks up 9 times out of 10.  This is what happens:

CPU0 CPU1
pegasus_start_xmit
netif_stop_queue
pegasus_set_multicast
netif_stop_queue
netif_wake_queue

Which crashes if another packet is sent to pegasus_start_xmit before
the first one is finished.

If there are other drivers doing this, please fix them too.

PS I submitted this to Petkan years ago but he probably lost it.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: pwc-uncompress.h
Andrew Morton [Tue, 29 Jun 2004 02:48:16 +0000 (19:48 -0700)]
[PATCH] USB: pwc-uncompress.h

For some reason, gcc-2.95.4 dies horridly on those asmlinkage
declarations.

I was unable to work out _why_ those functions have asmlinkage, as there
seem to be no instances of them - nobody calls
pwc_register_decompressor().
 What's up with that?

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: PL2303 module, new IDs
Petr Slansky [Tue, 29 Jun 2004 02:47:12 +0000 (19:47 -0700)]
[PATCH] USB: PL2303 module, new IDs

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB Storage: unusual_devs.h addition
Torsten Scherer [Tue, 29 Jun 2004 02:46:24 +0000 (19:46 -0700)]
[PATCH] USB Storage: unusual_devs.h addition

took me a while to get my external usb drive running under linux-2.6.6,
appears to need the appended fix. according to the header in unusual_devs.h
one should send them to you, so here you go.

the funny thing is that it works fine unter linux-2.6.0-test11 on different
hardware, but then i'm out of my depth concerning what might have been
changed in the usb driver in the meantime. i don't really follow the
changes. i didn't find any real documentation about what these flags do,
only a couple of "my usb drive worked with 2.4 but doesn't work any more
with 2.6" messages on the web, and some of them pointed to unusual_devs.h. i
do not claim to know what i've done with this fix, but i'd like to see it
officially included. :-)

T:  Bus=04 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0402 ProdID=5621 Rev= 1.03
S:  Product=USB 2.0 Storage Device
S:  SerialNumber=00042222200000113608
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] Remove NOOP code from fs/buffer.c::drop_buffers()
Anton Altaparmakov [Tue, 29 Jun 2004 02:36:39 +0000 (19:36 -0700)]
[PATCH] Remove NOOP code from fs/buffer.c::drop_buffers()

I noticed that fs/buffer.c::drop_buffers() contains some code that
AFAICS doesn't actually do anything other than waste cpu cycles so here
is patch to remove it...  The local variable was_uptodate is being
messed with but it is not being read anywhere so it seems entirely
pointless.

I assume this must be a remainder from old code which mucked around with
the page uptodateness but which has since been (re-)moved.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparse: fix ugly include/linux/efi.h typedef
Mika Kukkonen [Tue, 29 Jun 2004 02:34:15 +0000 (19:34 -0700)]
[PATCH] sparse: fix ugly include/linux/efi.h typedef

efi.h declares a function type, and then uses that as an argument to
another function, and expects the compiler to magically demote the
function to a function pointer.

Even a gcc person (rth) was surprised that this was legal, and it
doesn't match any other use of a function pointer in the kernel, and
sparse doesn't like the implicit type-conversion.

So make the type sane in the first place, instead of depending on
a very weird corner case of the C language.

22 years ago[PATCH] ppc64: fix memset
Paul Mackerras [Tue, 29 Jun 2004 02:34:04 +0000 (19:34 -0700)]
[PATCH] ppc64: fix memset

This fixes a bug in the ppc64 memset where the code that gets the
destination address aligned (or is supposed to) was looking at the
bottom 3 bits of the count rather than the destination address.  The
result of this was that the kernel wouldn't boot on POWER3 machines.
The patch also removes an unnecessary duplicate instruction.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Mon, 28 Jun 2004 10:29:10 +0000 (03:29 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoUSB: provide support for the HX version of pl2303 chips
Greg Kroah-Hartman [Mon, 28 Jun 2004 10:03:18 +0000 (03:03 -0700)]
USB: provide support for the HX version of pl2303 chips

Thanks to Gordon Elam <gbe@shoremicro.com> for the information needed
to do this.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[NETLINK]: Fix NLMSG_OK/RTA_OK length checking.
Christoph Hellwig [Mon, 28 Jun 2004 08:32:38 +0000 (01:32 -0700)]
[NETLINK]: Fix NLMSG_OK/RTA_OK length checking.

Verify at least a full header is there before derefencing
length struct member.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 28 Jun 2004 07:39:04 +0000 (00:39 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] move prototype for __get_vm_area() to a sane location
Nicolas Pitre [Mon, 28 Jun 2004 07:31:48 +0000 (00:31 -0700)]
[PATCH] move prototype for __get_vm_area() to a sane location

There are currently two files besides mm/vmalloc.c that make use of that
function:

- arch/sh/kernel/cpu/sh4/sq.c
  which defined its own prototype locally risking not being in sync with
  the real function, and

- arch/arm/kernel/module.c which has no prototype at all and cause
  build warnings.

This fixes those issues

22 years ago[PATCH] remove extraneous security_inode_setattr call in hugetlbfs
Chris Wright [Mon, 28 Jun 2004 07:30:53 +0000 (00:30 -0700)]
[PATCH] remove extraneous security_inode_setattr call in hugetlbfs

remove extraneous security_inode_setattr call in hugetlbfs, it's already
done by VFS.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] nfs oops fix
Andre Noll [Mon, 28 Jun 2004 07:30:18 +0000 (00:30 -0700)]
[PATCH] nfs oops fix

Al's current changes to struct nameidata broke nfsroot for my discless
clients (oops in nfs_fill_super).  The patch below fixes this problem
for me.

Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[NET]: Fix typos in pktgen docs.
Karsten Desler [Mon, 28 Jun 2004 06:15:54 +0000 (23:15 -0700)]
[NET]: Fix typos in pktgen docs.

22 years ago[DECNET]: Fix signed bug in net/decnet/dn_nsp_in.c:dn_nsp_linkservice()
Olaf Hering [Mon, 28 Jun 2004 06:14:35 +0000 (23:14 -0700)]
[DECNET]: Fix signed bug in net/decnet/dn_nsp_in.c:dn_nsp_linkservice()

char can be either signed or unsigned, depending on the target system.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AIO]: kiocb->private is too large for kiocb's on-stack.
William Lee Irwin III [Mon, 28 Jun 2004 06:10:38 +0000 (23:10 -0700)]
[AIO]: kiocb->private is too large for kiocb's on-stack.

sizeof(struct kiocb) is dangerously large for a structure commonly
allocated on-stack. This patch converts the 24*sizeof(long) field,
->private, to a void pointer for use by file_operations entrypoints.
A ->dtor() method is added to the kiocb in order to support the release
of dynamically allocated structures referred to by ->private.

The sole in-tree users of ->private are async network read/write,
which are not, in fact, async, and so need not handle preallocated
->private as they would need to if ->ki_retry were ever used. The sole
truly async operations are direct IO pread()/pwrite() which do not
now use ->ki_retry(). All they would need to do in that case is to
check for ->private already being allocated for async kiocbs.

This rips 88B off the stack on 32-bit in the common case.

Signed-off-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoppc64: fix silly typo ("1" vs "i").
Linus Torvalds [Mon, 28 Jun 2004 02:06:26 +0000 (19:06 -0700)]
ppc64: fix silly typo ("1" vs "i").

22 years ago[PATCH] minor CAP_DAC_OVERRIDE fix
Andries E. Brouwer [Sun, 27 Jun 2004 16:35:45 +0000 (09:35 -0700)]
[PATCH] minor CAP_DAC_OVERRIDE fix

CAP_DAC_OVERRIDE fails to give search permission in a directory with
mode 0.

Patch acked by Chris Wright <chrisw@osdl.org>
Signed-off-by: Andries Brouwer <aeb@cwi.nl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove include/asm-*/init.h
Alexey Dobriyan [Sun, 27 Jun 2004 16:35:33 +0000 (09:35 -0700)]
[PATCH] Remove include/asm-*/init.h

There's no reason to keep files that
a) nobody #include's
b) produce #error

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix GFP zone modifier interators
Andy Whitcroft [Sun, 27 Jun 2004 16:35:21 +0000 (09:35 -0700)]
[PATCH] fix GFP zone modifier interators

For each node there are a defined list of MAX_NR_ZONES zones.  These are
selected as a result of the __GFP_DMA and __GFP_HIGHMEM zone modifier flags
being passed to the memory allocator as part of the GFP mask.  Each node
has a set of zone lists, node_zonelists, which defines the list and order
of zones to scan for each flag combination.  When initialising these lists
we iterate over modifier combinations 0 ..  MAX_NR_ZONES.  However, this is
only correct when there are at most ZONES_SHIFT flags.  If another flag is
introduced zonelists for it would not be initialised.

This patch introduces GFP_ZONETYPES (based on GFP_ZONEMASK) as a bound for
the number of modifier combinations.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] vc locking
Alan Cox [Sun, 27 Jun 2004 16:35:10 +0000 (09:35 -0700)]
[PATCH] vc locking

Like a few other drivers the vc driver is doing unlocked careless
references to file offsets.  Its got kind of 2.2 locking that hasnt been
updated in the lseek function so someone at least tried.

Fortunately we have a real lock for this and can just make lseek use that
too.

The 'assume 64bit load is atomic' bug seems to be very widely spread

akpm@osdl.org:

   Move declarations to vt_kern.h

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radeonfb accel capabilities
David Eger [Sun, 27 Jun 2004 16:34:58 +0000 (09:34 -0700)]
[PATCH] radeonfb accel capabilities

Here's the accel capabilities patch for radeonfb.  It updates radeonfb to
advertise its acceleration capabilities via fbinfo.flags.  I've tested this
on my box, and it gives me a nice fast console.

defect: "$ fbset -accel 0" doesn't work for radeonfb -- disabling accel
will only work from the kernel command line :-/

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix smbfs readdir oops
Zwane Mwaikambo [Sun, 27 Jun 2004 16:34:47 +0000 (09:34 -0700)]
[PATCH] Fix smbfs readdir oops

This has been reported a couple of times and is consistently causing some
folks grief, so Urban, would you mind terribly if i send this patch to at
least clear current bug reports.  If there is additional stuff you want
ontop of this let me know and i can send a follow up patch.

The bug is that at times we haven't completed setting up the smb_ops so we
have a temporary 'null' ops in place until the connection is completely up.
 With this setup it's possible to hit ->readdir() whilst the null ops are
still in place, so we put the process to sleep until the connection setup
is complete and then call the real ->readdir().

This patch addresses the bugzilla report at
http://bugzilla.kernel.org/show_bug.cgi?id=1671

Signed-off-by: Zwane Mwaikambo <zwane@linuxpower.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86 stack dump fixes
Andrew Morton [Sun, 27 Jun 2004 16:34:36 +0000 (09:34 -0700)]
[PATCH] x86 stack dump fixes

- Fix the !CONFIG_FRAME_POINTER && !CONFIG_KALLSYMS output formatting.

- Make print_context_stack() static

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ia32: fix deadlocks when oopsing while mmap_sem is held
Andy Whitcroft [Sun, 27 Jun 2004 16:34:24 +0000 (09:34 -0700)]
[PATCH] ia32: fix deadlocks when oopsing while mmap_sem is held

If a fault in the kernel leads to an unexpected protection fault whilst in
a code path which holds mmap_sem we will deadlock in do_page_fault() while
trying to classify the fault.  By carefully testing the source of the fault
we can detect and OOPS on the vast majority of these, greatly enhancing
diagnosis of such bugs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: command_line_size build fix
Joseph Fannin [Sun, 27 Jun 2004 16:34:13 +0000 (09:34 -0700)]
[PATCH] ppc32: command_line_size build fix

We need setup.h for COMMAND_LINE_SIZE.

Signed-off-by: Joseph Fannin <jhf@rivenstone.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge master.kernel.org:/home/davem/BK/net-2.6
Linus Torvalds [Sun, 27 Jun 2004 16:31:13 +0000 (09:31 -0700)]
Merge master.kernel.org:/home/davem/BK/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[NET]: Fix SO_{RCV,SND}TIMEO getsockopt handling.
David S. Miller [Sun, 27 Jun 2004 13:37:27 +0000 (06:37 -0700)]
[NET]: Fix SO_{RCV,SND}TIMEO getsockopt handling.

A microsecond is 1 millionth of a second not
1 thousandth of a second.

Noticed by Markus Mottl <markus@oefai.at>

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NET]: Kill spurious ifndef in net/ip.h
Adrian Bunk [Sun, 27 Jun 2004 13:34:23 +0000 (06:34 -0700)]
[NET]: Kill spurious ifndef in net/ip.h

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Sun, 27 Jun 2004 13:30:15 +0000 (06:30 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Sun, 27 Jun 2004 07:55:35 +0000 (00:55 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

22 years ago[SPARC64]: No longer set WANT_PAGE_VIRTUAL.
David S. Miller [Sun, 27 Jun 2004 07:20:23 +0000 (00:20 -0700)]
[SPARC64]: No longer set WANT_PAGE_VIRTUAL.

Also uninline pfn_to_page and page_to_pfn.
Struct page is now 8 bytes smaller.

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.6
Linus Torvalds [Sun, 27 Jun 2004 04:26:05 +0000 (21:26 -0700)]
Merge master.kernel.org:/home/davem/BK/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] PPC64 iSeries fails to boot
Stephen Rothwell [Sun, 27 Jun 2004 04:17:10 +0000 (21:17 -0700)]
[PATCH] PPC64 iSeries fails to boot

Jeremy Katz of Red Hat reported that his iSeries machine would not boot
with 2.6.7 based kernels.

It appears that with the inclusion of Paul Mackerras' patch "Optimize
exception/syscall entry/exit" a small previous patch got reverted.  Here
is that patch again.  The lack of this patch does not stop all iSeries
machines booting, but it does stop some.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] affs_setattr() retval fix
Andrew Morton [Sun, 27 Jun 2004 04:04:19 +0000 (21:04 -0700)]
[PATCH] affs_setattr() retval fix

affs is failing to propagate the inode_setattr() return value.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs_setattr() retval fix
Andrew Morton [Sun, 27 Jun 2004 04:04:07 +0000 (21:04 -0700)]
[PATCH] ncpfs_setattr() retval fix

ncpfs is failing to propagate the inode_setattr return value.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cifs_setattr() retval fix
Andrew Morton [Sun, 27 Jun 2004 04:03:56 +0000 (21:03 -0700)]
[PATCH] cifs_setattr() retval fix

CIFS is failing to propagate the inode_setattr() return value.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] jfs_setattr() fix
Andrew Morton [Sun, 27 Jun 2004 04:03:45 +0000 (21:03 -0700)]
[PATCH] jfs_setattr() fix

jfs is dropping inode_setattr()'s return value.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reiserfs_setattr retval fix
Andrew Morton [Sun, 27 Jun 2004 04:03:33 +0000 (21:03 -0700)]
[PATCH] reiserfs_setattr retval fix

reiserfs() is also dropping inode_setattr() retvals on the floor.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ext2_setattr retval fix
Andrew Morton [Sun, 27 Jun 2004 04:03:22 +0000 (21:03 -0700)]
[PATCH] ext2_setattr retval fix

ext2_setattr() drops the inode_setattr() return value on the floor.  This is
very bad - I/O errors during truncate are lost.

The patch changes ext2_setattr() so that we no longer call ext2_acl_chmod() if
inode_setattr(), which is what ext3 does.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Don't hold i_sem on swapfiles
Hugh Dickins [Sun, 27 Jun 2004 04:03:11 +0000 (21:03 -0700)]
[PATCH] Don't hold i_sem on swapfiles

We permanently hold the i_sem of swapfiles so that nobody can addidentally
ftruncate them, causing subsequent filesystem destruction.

Problem is, it's fairly easy for things like backup applications to get
stuck onthe swapfile, sleeping until someone does a swapoff.

So take all that out again and add a new S_SWAPFILE inode flag.  Test that
in the truncate path and refuse to truncate an in-use swapfile.

Synchronisation between swapon and truncate is via i_sem.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ARM COMMAND_LINE_SIZE build fix
Russell King [Sun, 27 Jun 2004 04:03:00 +0000 (21:03 -0700)]
[PATCH] ARM COMMAND_LINE_SIZE build fix

Rework the declaration, sizing and memcpying of saved_command_line[] so
that ARM doesn't need to implement unwelcome header file nestings.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ext3: direct-io transaction extending fix
Andrew Morton [Sun, 27 Jun 2004 04:02:48 +0000 (21:02 -0700)]
[PATCH] ext3: direct-io transaction extending fix

ext3_direct_io_get_blocks() is misinterpreting the return value from
ext3_journal_extend(), and is consequently running out of buffer credits and
going BUG on tremendously large direct-io writes.  Fix that up.

Also, I note that the really large direct-io writes can hold a transaction
open for the entire duration, which can be minutes.  This violates ext3's
attempt to commit data at regular intervals.  Fix that up by looking at the
transaction state: if it's T_LOCKED, shut off the current handle so the
pending commit can complete.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] lock ordering comment update
Andrew Morton [Sun, 27 Jun 2004 04:02:37 +0000 (21:02 -0700)]
[PATCH] lock ordering comment update

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cpufreq_delayed_get() inlining fix
Jesper Juhl [Sun, 27 Jun 2004 04:02:26 +0000 (21:02 -0700)]
[PATCH] cpufreq_delayed_get() inlining fix

Here's a patch to reorder timer_tsc.c so gcc 3.4 does not fail to inline
and thus fix the warning "arch/i386/kernel/timers/timer_tsc.c:30: warning:
inlining failed in call to 'cpufreq_delayed_get': function body not
available"

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] anon_vma list locking bug
Hugh Dickins [Sun, 27 Jun 2004 04:02:14 +0000 (21:02 -0700)]
[PATCH] anon_vma list locking bug

Vladimir Saveliev reported anon_vma_unlink list_del BUG (LKML 24 June).
His testing is still in progress, but we believe it comes from a nasty
locking deficiency I introduced in 2.6.7's anon_vma_prepare.

Andrea's original anon_vma_prepare was fine, it needed no anon_vma lock
because it was always linking a freshly allocated structure; but my
find_mergeable enhancement let it adopt a neighbouring anon_vma, which of
course needs locking against a racing linkage from another mm - which the
earlier adjust_vma fix seems to have made more likely.

Does anon_vma->lock nest inside or outside page_table_lock?  Inside, but
that's not obvious without a lock ordering list: instead of listing the
order here, update the list in filemap.c; but a separate patch because
that's less urgent and more likely to get wrong or provoke controversy.

(Could do it with anon_vma lock after dropping page_table_lock, but a long
comment explaining why some code is safe suggests it's not.)

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/char/ipmi/ipmi_si_intf.c warnings
Luiz Capitulino [Sun, 27 Jun 2004 04:02:03 +0000 (21:02 -0700)]
[PATCH] drivers/char/ipmi/ipmi_si_intf.c warnings

drivers/char/ipmi/ipmi_si_intf.c: In function `acpi_gpe_irq_setup':
drivers/char/ipmi/ipmi_si_intf.c:1173: warning: passing arg 4 of `acpi_install_gpe_handler' from incompatible pointer type
drivers/char/ipmi/ipmi_si_intf.c: In function `acpi_gpe_irq_cleanup':
drivers/char/ipmi/ipmi_si_intf.c:1193: warning: passing arg 3 of `acpi_remove_gpe_handler' from incompatible pointer type

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] swsusp.S: meaningful assembly labels
Pavel Machek [Sun, 27 Jun 2004 04:01:52 +0000 (21:01 -0700)]
[PATCH] swsusp.S: meaningful assembly labels

This introduces meaningfull labels instead of .L1234, meaning code is
readable, kills alignment where unneccessary, and kills TLB flush that was
only pure paranoia (and slows it down a lot on emulated systems).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Laptop mode control script improvements
Bart Samwel [Sun, 27 Jun 2004 04:01:41 +0000 (21:01 -0700)]
[PATCH] Laptop mode control script improvements

From: Herve Eychenne <rv@eychenne.org>

Clean up the script. This also makes it two times faster. (Thanks to
Herve Eychenne.)

- moved variable definitions to the top, for easier configuration
- the script contains bashisms, so make it /bin/bash
- use sed -e'...' -e '...' instead of sed | sed
- avoid subshells: () changed to {}
- various other minor optimizations and improvements

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] inodes_stat.nr_unused fix
Andrew Morton [Sun, 27 Jun 2004 04:01:30 +0000 (21:01 -0700)]
[PATCH] inodes_stat.nr_unused fix

__sync_single_inode() is forgetting to increment inodes_stat.nr_unused when
moving a previously-dirty inode onto the inode_unused list.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] laptop-mode documentation update
Bart Samwel [Sun, 27 Jun 2004 04:01:19 +0000 (21:01 -0700)]
[PATCH] laptop-mode documentation update

The laptop mode docs don't say that no kernel configuration changes are
needed to use laptop mode.  That's caused some people to look for the
option.  This patch makes the doc explicitly mention the lack of an option.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppp_generic.c get_filter made conditional
Paul Fulghum [Sun, 27 Jun 2004 04:01:08 +0000 (21:01 -0700)]
[PATCH] ppp_generic.c get_filter made conditional

Add #ifdef CONFIG_PPP_FILTER around get_filter implementation which is only
used when this option is enabled.  This prevents compiler warning (unused
function) when CONFIG_PPP_FILTER is not defined.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing semicolon in 2.6.7 VIODASD driver
David Howells [Sun, 27 Jun 2004 04:00:57 +0000 (21:00 -0700)]
[PATCH] missing semicolon in 2.6.7 VIODASD driver

There appears to be a missing semicolon in the VIODASD driver in 2.6.7.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix NUMA boundaray between ZONE_NORMAL and HIGHMEM
Martin J. Bligh [Sun, 27 Jun 2004 04:00:45 +0000 (21:00 -0700)]
[PATCH] fix NUMA boundaray between ZONE_NORMAL and HIGHMEM

From: Andy Whitcroft <apw@shadowen.org>

This patch eliminates the false hole which can form between ZONE_NORMAL and
ZONE_HIGHMEM.  This is most easily seen when 4g/4g split is enabled, but
it's always broken, and we just happen not to hit it most of the time.
Basically, the patch changes the allocation of the numa remaps regions (the
source of the holes) such that they officially fall within VMALLOC space,
where they belong.

Tested in -mjb for a couple of months, and again against 2.6.7-mm1.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Martin J. Bligh <mbligh@aracnet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix direct I/O into hugetlb page
Kenneth W. Chen [Sun, 27 Jun 2004 04:00:34 +0000 (21:00 -0700)]
[PATCH] Fix direct I/O into hugetlb page

Hit a kernel oops on 2.6.7 kernel when doing direct I/O to hugetlb page.

The destructor of compound page was moved into page->mapping since 2.6.6.
It got interfered with set_page_dirty() for hugetlb page: an O_DIRECT read
into first tail page of the compound page will fool set_page_dirty() to
deference page->mapping->a_ops and then kernel oops.  Patch to fix the
oops.  We do just like what bio_set_pages_dirty() does.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] crc: use it in AX.25 drivers
Andrey Panin [Sun, 27 Jun 2004 04:00:23 +0000 (21:00 -0700)]
[PATCH] crc: use it in AX.25 drivers

This patch makes AX.25 drivers use common crc16 code.

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] crc: use it in ISDN drivers
Andrey Panin [Sun, 27 Jun 2004 04:00:12 +0000 (21:00 -0700)]
[PATCH] crc: use it in ISDN drivers

This patch makes various ISDN drivers use common crc16 code.

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] crc: use it in IRDA drivers
Andrey Panin [Sun, 27 Jun 2004 04:00:01 +0000 (21:00 -0700)]
[PATCH] crc: use it in IRDA drivers

This patch makes IRDA subsystem use common crc16 code.

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>