]> git.neil.brown.name Git - history.git/log
history.git
22 years ago[PATCH] large dev_t - second series (7/15)
Alexander Viro [Fri, 5 Sep 2003 03:54:08 +0000 (20:54 -0700)]
[PATCH] large dev_t - second series (7/15)

the last kdev_t object is gone; ->i_rdev switched to dev_t.

22 years ago[PATCH] large dev_t - second series (6/15)
Alexander Viro [Fri, 5 Sep 2003 03:53:56 +0000 (20:53 -0700)]
[PATCH] large dev_t - second series (6/15)

tty redirect handling sanitized.  Such ttys (/dev/tty and
/dev/console) get a different file_operations; its ->write() handles
redirects; checks for file->f_op == &tty_fops updated, checks for
major:minor being that of a redirector replaced with check for
->f_op->write value.  Piece of code in tty_io.c that had been #if 0
since 0.99<something> had been finally put out of its misery. kdev_val()
is gone.

22 years ago[PATCH] large dev_t - second series (5/15)
Alexander Viro [Fri, 5 Sep 2003 03:53:47 +0000 (20:53 -0700)]
[PATCH] large dev_t - second series (5/15)

cdevname() killed, there was only one remaining user
(tty_paranoia_check()) and in that case cdevname() was worse
than plain major:minor (basically, it's "you've got corrupted
inode that was supposed to belong to tty device; here's what
I'd found in ->i_rdev")

22 years ago[PATCH] large dev_t - second series (4/15)
Alexander Viro [Fri, 5 Sep 2003 03:53:38 +0000 (20:53 -0700)]
[PATCH] large dev_t - second series (4/15)

cciss cleanup - instead of playing with device numbers, we add
helper functions that get host and drive structures by gendisk and use
them in open/ioctl/release, same as had been done for cpqarray.

22 years ago[PATCH] large dev_t - second series (3/15)
Alexander Viro [Fri, 5 Sep 2003 03:53:29 +0000 (20:53 -0700)]
[PATCH] large dev_t - second series (3/15)

paride/pt.c cleanups - passing pointer to pt_unit instead of index
in array; same as had been done for pd/pcd/pf.

22 years ago[PATCH] large dev_t - second series (2/15)
Alexander Viro [Fri, 5 Sep 2003 03:53:20 +0000 (20:53 -0700)]
[PATCH] large dev_t - second series (2/15)

floppy98 ->probe() forgot to set *part to 0; fixed.

22 years ago[PATCH] large dev_t - second series (1/15)
Alexander Viro [Fri, 5 Sep 2003 03:53:11 +0000 (20:53 -0700)]
[PATCH] large dev_t - second series (1/15)

misc trivial cleanups

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Fri, 5 Sep 2003 02:46:08 +0000 (19:46 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[ARM] Kill snprintf formatting warning.
Russell King [Fri, 5 Sep 2003 18:14:26 +0000 (19:14 +0100)]
[ARM] Kill snprintf formatting warning.

22 years ago[ARM] Don't sleep in cpufreq code if IRQs are disabled (during resume.)
Russell King [Fri, 5 Sep 2003 18:10:57 +0000 (19:10 +0100)]
[ARM] Don't sleep in cpufreq code if IRQs are disabled (during resume.)

22 years ago[ARM] Fix PXA and SA1100 suspend/resume
Russell King [Fri, 5 Sep 2003 18:04:35 +0000 (19:04 +0100)]
[ARM] Fix PXA and SA1100 suspend/resume

- Don't write the current time back to the RTC on suspend - we may
  jump over a programmed wakeup alarm.
- Restore SA1100 GPIO output state

22 years ago[ARM] Fix ARM suspend-to-RAM.
Russell King [Fri, 5 Sep 2003 17:42:14 +0000 (18:42 +0100)]
[ARM] Fix ARM suspend-to-RAM.

- Suspend and resume system devices.
- If device suspend fails, don't suspend.

22 years ago[ARM] Don't read the CPU control reg back - it may be write only.
Russell King [Fri, 5 Sep 2003 17:36:50 +0000 (18:36 +0100)]
[ARM] Don't read the CPU control reg back - it may be write only.

Some ARM CPUs don't allow CP15 CR1 control register to be read.
Therefore, to ensure that the value hits the control register on
Xscale, read back the CP15 CR0 ID register instead.

22 years ago[ARM] Restore preempt count before reporting unbalanced preempt count
Russell King [Fri, 5 Sep 2003 17:28:53 +0000 (18:28 +0100)]
[ARM] Restore preempt count before reporting unbalanced preempt count

On ARM, we oops when we detect that an interrupt handler has unbalanced
the preempt count.  We should restore the preempt count when we started
to handle the interrupt and then cause the oops.

22 years ago[ARM] Newer binutils want -mcpu=xscale not -mxscale
Russell King [Fri, 5 Sep 2003 17:18:14 +0000 (18:18 +0100)]
[ARM] Newer binutils want -mcpu=xscale not -mxscale

22 years ago[ARM] Fix wrong cache flush call for ARM1020 CPUs
Russell King [Fri, 5 Sep 2003 12:18:02 +0000 (13:18 +0100)]
[ARM] Fix wrong cache flush call for ARM1020 CPUs

22 years ago[ARM] arch/arm/kernel/setup.c needs to include asm/cacheflush.h
Russell King [Fri, 5 Sep 2003 12:06:36 +0000 (13:06 +0100)]
[ARM] arch/arm/kernel/setup.c needs to include asm/cacheflush.h

22 years ago[PATCH] 2.6.0-test4 synclink_cs.c
Paul Fulghum [Fri, 5 Sep 2003 01:45:29 +0000 (18:45 -0700)]
[PATCH] 2.6.0-test4 synclink_cs.c

* replace previously removed NULL context check
  (causes oops when opening non existent device)

22 years ago[PATCH] 2.6.0-test4 synclinkmp.c
Paul Fulghum [Fri, 5 Sep 2003 01:45:21 +0000 (18:45 -0700)]
[PATCH] 2.6.0-test4 synclinkmp.c

* replace previously removed NULL context check
  (causes oops when opening non existent device)

22 years ago[PATCH] 2.6.0-test4 synclink.c
Paul Fulghum [Fri, 5 Sep 2003 01:45:12 +0000 (18:45 -0700)]
[PATCH] 2.6.0-test4 synclink.c

* add RCC underrun handling
* fix stats output typo
* replace previously removed NULL context check
  (causes oops when opening non existent device)

22 years ago[PATCH] incomplete asm constraints in arch/i386/pci/pcbios.c
Arjan van de Ven [Fri, 5 Sep 2003 01:28:38 +0000 (18:28 -0700)]
[PATCH] incomplete asm constraints in arch/i386/pci/pcbios.c

This fixes a "miscompile" HP reported against gcc 3.3 with
-march-pentium4.  It turned out to be a non-complete asm contraint.  the
existing constraint on "opt" was on the address of "opt", which allowed
gcc to reorder the setting of the fields inside opt to beyond the asm
that uses it, which is less than useful at best.

22 years ago[PATCH] Unpinned futexes v2: indexing changes
Jamie Lokier [Fri, 5 Sep 2003 01:00:45 +0000 (18:00 -0700)]
[PATCH] Unpinned futexes v2: indexing changes

This changes the way futexes are indexed, so that they don't pin pages.
It also fixes some bugs with private mappings and COW pages.

Currently, all futexes look up the page at the userspace address and pin
it, using the pair (page,offset) as an index into a table of waiting
futexes.  Any page with a futex waiting on it remains pinned in RAM,
which is a problem when many futexes are used, especially with FUTEX_FD.

Another problem is that the page is not always the correct one, if it
can be changed later by a COW (copy on write) operation.  This can
happen when waiting on a futex without writing to it after fork(),
exec() or mmap(), if the page is then written to before attempting to
wake a futex at the same adress.

There are two symptoms of the COW problem:
 - The wrong process can receive wakeups
 - A process can fail to receive required wakeups.

This patch fixes both by changing the indexing so that VM_SHARED
mappings use the triple (inode,offset,index), and private mappings use
the pair (mm,virtual_address).

The former correctly handles all shared mappings, including tmpfs and
therefore all kinds of shared memory (IPC shm, /dev/shm and
MAP_ANON|MAP_SHARED).  This works because every mapping which is
VM_SHARED has an associated non-zero vma->vm_file, and hence inode.
(This is ensured in do_mmap_pgoff, where it calls shmem_zero_setup).

The latter handles all private mappings, both files and anonymous.  It
isn't affected by COW, because it doesn't care about the actual pages,
just the virtual address.

The patch has a few bonuses:

        1. It removes the vcache implementation, as only futexes were
           using it, and they don't any more.

        2. Removing the vcache should make COW page faults a bit faster.

        3. Futex operations no longer take the page table lock, walk
           the page table, fault in pages that aren't mapped in the
           page table, or do a vcache hash lookup - they are mostly a
           simple offset calculation with one hash for the futex
           table.  So they should be noticably faster.

Special thanks to Hugh Dickins, Andrew Morton and Rusty Russell for
insightful feedback.  All suggestions are included.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Fri, 5 Sep 2003 00:34:06 +0000 (17:34 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] ide: fix ide_cs oops with TCQ
Bartlomiej Zolnierkiewicz [Fri, 5 Sep 2003 00:15:37 +0000 (17:15 -0700)]
[PATCH] ide: fix ide_cs oops with TCQ

From Matias Alejo Garcia <kernel@matiu.com.ar>.

22 years ago[PATCH] Move MODULE_ALIAS_LDISC to tty_ldisc.h
Russell King [Fri, 5 Sep 2003 00:15:28 +0000 (17:15 -0700)]
[PATCH] Move MODULE_ALIAS_LDISC to tty_ldisc.h

MODULE_ALIAS_LDISC() is not in any way architecture-specific, so don't
put it in architecture header files.

Here's a patch which moves it to a more sensible location.

22 years ago[PATCH] fix IO hangs
Jens Axboe [Fri, 5 Sep 2003 00:13:17 +0000 (17:13 -0700)]
[PATCH] fix IO hangs

The "insert_here" list pointer logic was broken, and unnecessary.

Kill it and its associated logic off completely - just tell the IO
scheduler what kind of insert it is.

This also makes the *_insert_request strategies much easier to follow,
imo.

22 years ago[NET]: Kill more verbose init msgs and unused RTNL_DEBUG define.
David S. Miller [Thu, 4 Sep 2003 20:40:24 +0000 (13:40 -0700)]
[NET]: Kill more verbose init msgs and unused RTNL_DEBUG define.

22 years ago[NET]: Print a KERN_INFO msg when protocol families are {un,}registered.
David S. Miller [Thu, 4 Sep 2003 20:35:02 +0000 (13:35 -0700)]
[NET]: Print a KERN_INFO msg when protocol families are {un,}registered.

22 years ago[NET]: Remove all the silly 'NET4.x' init messages.
David S. Miller [Thu, 4 Sep 2003 20:19:32 +0000 (13:19 -0700)]
[NET]: Remove all the silly 'NET4.x' init messages.

22 years ago[ATM]: Remove bogus UNUSED macro usage in pppoatm.c
John Levon [Thu, 4 Sep 2003 20:02:57 +0000 (13:02 -0700)]
[ATM]: Remove bogus UNUSED macro usage in pppoatm.c

22 years agoMerge http://linux-lksctp.bkbits.net/lksctp-2.5
David S. Miller [Thu, 4 Sep 2003 19:56:30 +0000 (12:56 -0700)]
Merge http://linux-lksctp.bkbits.net/lksctp-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years ago[NET]: More SDLS fixes.
Stephen Hemminger [Thu, 4 Sep 2003 19:52:58 +0000 (12:52 -0700)]
[NET]: More SDLS fixes.

Since sdla.c now has locking instead of cli/sti, it shouldn't be
completely busted on SMP.

Also, the frad interface registration needed to be done once
(and check the result), and undone on module unload.

22 years ago[NET]: Do not ifdef declarations in Space.c
David S. Miller [Thu, 4 Sep 2003 19:52:21 +0000 (12:52 -0700)]
[NET]: Do not ifdef declarations in Space.c

22 years ago[NET]: COSA driver fixes.
Stephen Hemminger [Thu, 4 Sep 2003 19:50:17 +0000 (12:50 -0700)]
[NET]: COSA driver fixes.

* get rid of leftover sti
* no longer need MOD_INC/DEC stuff
* get rid of dead code related to MOD_INC/DEC
* use module_init/module_exit to cleanly run init code

22 years ago[ATM]: reduce CONFIG_PROC_FS #ifdef clutter in .c code (from levon@movementarian...
Chas Williams [Thu, 4 Sep 2003 19:41:05 +0000 (12:41 -0700)]
[ATM]: reduce CONFIG_PROC_FS #ifdef clutter in .c code (from levon@movementarian.org)

22 years ago[ATM]: fix atm_dev module refcount bug (from levon@movementarian.org)
Chas Williams [Thu, 4 Sep 2003 19:40:36 +0000 (12:40 -0700)]
[ATM]: fix atm_dev module refcount bug (from levon@movementarian.org)

22 years ago[ATM]: pvc/svc missing .owner for proto_ops/family (from levon@movementarian.org)
Chas Williams [Thu, 4 Sep 2003 19:39:02 +0000 (12:39 -0700)]
[ATM]: pvc/svc missing .owner for proto_ops/family (from levon@movementarian.org)

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Thu, 4 Sep 2003 16:06:15 +0000 (09:06 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years ago[CRYPTO]: Use try_then_request_module().
Rusty Russell [Thu, 4 Sep 2003 16:02:39 +0000 (09:02 -0700)]
[CRYPTO]: Use try_then_request_module().

try_then_request_module() does what crypto/autoload.c is doing, so
replace it.  Fix try_then_request_module(), too (thanks James).

22 years ago[PATCH] Fix /proc/stat off-by-one
Andrew Morton [Thu, 4 Sep 2003 07:55:30 +0000 (00:55 -0700)]
[PATCH] Fix /proc/stat off-by-one

I should have stayed in bed.

22 years ago[SCTP] Move a local variable declaration ahead of the function code.
Sridhar Samudrala [Thu, 4 Sep 2003 05:36:38 +0000 (22:36 -0700)]
[SCTP] Move a local variable declaration ahead of the function code.

Apparently the new gcc 3.2.2 allows local variable declarations within
the code of a function if it is not used earlier. But older gcc's do
not allow this.

22 years ago[NET]: Convert /proc/net/unix to seq_file.
Stephen Hemminger [Thu, 4 Sep 2003 05:03:29 +0000 (22:03 -0700)]
[NET]: Convert /proc/net/unix to seq_file.

22 years ago[ATM]: Convert the /proc/net/atm/br2684 to seq_file interface (from shemminger@osdl...
Chas Williams [Thu, 4 Sep 2003 04:08:15 +0000 (21:08 -0700)]
[ATM]: Convert the /proc/net/atm/br2684 to seq_file interface (from shemminger@osdl.org)

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Thu, 4 Sep 2003 04:03:08 +0000 (21:03 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years ago[PATCH] ikconfig - cleanups
Stephen Hemminger [Thu, 4 Sep 2003 04:01:38 +0000 (21:01 -0700)]
[PATCH] ikconfig - cleanups

Cleanup ikconfig
- use single_open for built_with file.
- get rid of unneeded globals
- use copy_to_user instead of char at a time
- only need the read routine, proc defaults to correct behaviour
  for the rest.

22 years ago[PATCH] fix remap of shared read only mappings
James Bottomley [Thu, 4 Sep 2003 03:13:28 +0000 (20:13 -0700)]
[PATCH] fix remap of shared read only mappings

When mmap MAP_SHARED is done on a file, it gets marked with VM_MAYSHARE
and, if it's read/write, VM_SHARED.  However, if it is remapped with
mremap(), the MAP_SHARED is only passed into the new mapping based on
VM_SHARED.  This means that remapped read only MAP_SHARED mappings lose
VM_MAYSHARE.  This is causing us a problem on parisc because we have to
align all shared mappings carefully to mitigate cache aliasing problems.

The fix is to key passing the MAP_SHARED flag back into the remapped are
off VM_MAYSHARE not VM_SHARED.

22 years ago[PATCH] ide: remove supports_dma field from ide_driver_t
Bartlomiej Zolnierkiewicz [Thu, 4 Sep 2003 03:11:54 +0000 (20:11 -0700)]
[PATCH] ide: remove supports_dma field from ide_driver_t

driver->supports_dma was used together with CONFIG_IDEDMA_ONLYDISK to limit
DMA access to disk devices only.  However Alan introduced new scheme in 2.5.63
and this field is not needed any longer because all ide drivers support DMA.

22 years ago[PATCH] ide: fix PM with ide-default driver
Bartlomiej Zolnierkiewicz [Thu, 4 Sep 2003 03:11:42 +0000 (20:11 -0700)]
[PATCH] ide: fix PM with ide-default driver

From Benjamin Herrenschmidt <benh@kernel.crashing.org>

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Thu, 4 Sep 2003 03:08:13 +0000 (20:08 -0700)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
James Bottomley [Thu, 4 Sep 2003 06:46:33 +0000 (01:46 -0500)]
Merge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.6

22 years ago[PATCH] fix /proc/stat handler for ARM, SPARC64, others..
Andrew Morton [Thu, 4 Sep 2003 02:51:38 +0000 (19:51 -0700)]
[PATCH] fix /proc/stat handler for ARM, SPARC64, others..

Some references to irq_stat[] snuck into generic code.  It doesn't work on
several architectures.

So revert that little improvement to the original version.

22 years ago[PATCH] Don't #ifdef prototypes
Russell King [Thu, 4 Sep 2003 02:43:03 +0000 (19:43 -0700)]
[PATCH] Don't #ifdef prototypes

It seems that changing CONFIG_BLK_DEV_INITRD causes the whole kernel to
rebuild due to an inappropriate ifdef in linux/fs.h - we should not
conditionalise prototypes.

In addition, real_root_dev is only used by two files (kernel/sysctl.c
and init/do_mounts_initrd.c) so it makes even less sense that it was in
linux/fs.h

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 4 Sep 2003 01:47:07 +0000 (18:47 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[NET]: Kill net/README, obsolete and out-of-date.
John Levon [Thu, 4 Sep 2003 00:54:03 +0000 (17:54 -0700)]
[NET]: Kill net/README, obsolete and out-of-date.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Wed, 3 Sep 2003 22:27:24 +0000 (15:27 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

22 years ago[SPARC]: Add MODULE_ALIAS_LDISC() defines.
David S. Miller [Wed, 3 Sep 2003 21:16:23 +0000 (14:16 -0700)]
[SPARC]: Add MODULE_ALIAS_LDISC() defines.

22 years ago[USB]: hiddev_exit() can no longer be __exit, called from init code now.
David S. Miller [Wed, 3 Sep 2003 21:10:08 +0000 (14:10 -0700)]
[USB]: hiddev_exit() can no longer be __exit, called from init code now.

22 years ago[NETFILTER]: NAT range calculation fix.
Harald Welte [Wed, 3 Sep 2003 21:09:48 +0000 (14:09 -0700)]
[NETFILTER]: NAT range calculation fix.

This patch fixes a logic bug in NAT range calculations, which also
causes a large slowdown when ICMP floods go through NAT.

Author: Karlis Peisenieks

22 years ago[PATCH] MODULE_ALIAS for tty ldisc
Andrew Morton [Wed, 3 Sep 2003 18:25:06 +0000 (11:25 -0700)]
[PATCH] MODULE_ALIAS for tty ldisc

From: Rusty Russell <rusty@rustcorp.com.au>

Rather than hardcoded names in modprobe, modules can offer their own
aliases (which can be overridden by the config file).

Here are the tty-ldisc ones.

22 years ago[PATCH] cciss error handling cleanup
Andrew Morton [Wed, 3 Sep 2003 18:14:12 +0000 (11:14 -0700)]
[PATCH] cciss error handling cleanup

From: mike.miller@hp.com

Clean up the error handling in cciss_init_one().

22 years ago[PATCH] hermes.h fails with outw_p() in :?
Andrew Morton [Wed, 3 Sep 2003 18:14:04 +0000 (11:14 -0700)]
[PATCH] hermes.h fails with outw_p() in :?

From: Michael Pruznick <michael_pruznick@mvista.com>

build errors:
  hermes.h: In function `hermes_set_irqmask':
  hermes.h:337: parse error before "do"
  hermes.h:337: parse error before ';' token
  hermes.h: In function `hermes_write_words':

In mips, outw_p() is a #define do...while(0) which, in the case of ?:,
results in a statement being used where an expression is required.

22 years ago[PATCH] drivers/scsi/imm.c build fix
Andrew Morton [Wed, 3 Sep 2003 18:13:55 +0000 (11:13 -0700)]
[PATCH] drivers/scsi/imm.c build fix

22 years ago[PATCH] Remove Documentation/kmod.txt
Andrew Morton [Wed, 3 Sep 2003 18:13:47 +0000 (11:13 -0700)]
[PATCH] Remove Documentation/kmod.txt

From: Rusty Russell <rusty@rustcorp.com.au>

Please delete Documentation/kmod.txt: it's entirely outdated and misleading.

I thought about rewriting it, but there's not much to add beyond what's in
the CONFIG_KMOD's help text.

22 years ago[PATCH] i8042 free_irq() aliasing fix
Andrew Morton [Wed, 3 Sep 2003 18:13:39 +0000 (11:13 -0700)]
[PATCH] i8042 free_irq() aliasing fix

The same address `i8042_request_irq_cookie' is used in three places for the
i8042 request_irq() argument.  This means that if someone calls
i8042_check_mux() or i8042_check_aux() while the IRQ is in use, the
free_irq() call in there will free the wrong IRQ handler.

So give all three instances of request_irq() in i8042.c a distinct address by
which to identify the IRQ instance.

(This is probably a non-bug, because the `check' functions are not called
when the device is open, but it is better this way).

22 years ago[PATCH] devfs pty fix
Andrew Morton [Wed, 3 Sep 2003 18:13:31 +0000 (11:13 -0700)]
[PATCH] devfs pty fix

From: Andrew Lunn <andrew@lunn.ch>

Create the pty slaves on init so the behaviour is consistant with 2.4 and 2.6
without devfs.

22 years ago[PATCH] Enable SELinux via boot parameter
Andrew Morton [Wed, 3 Sep 2003 18:13:22 +0000 (11:13 -0700)]
[PATCH] Enable SELinux via boot parameter

From: James Morris <jmorris@redhat.com>

This patch adds an 'selinux' boot parameter which must be used to actually
enable SELinux.

It follows some internal discussion about deployment issues, where a vendor
would want to ship a single kernel image with SELinux built-in, without
requiring the user to use it.

Without specifying selinux=1 as a boot parameter, SELinux will not register
with LSM and selinuxfs will not be registered as a filesystem.  This causes
SELinux to be bypassed entirely from then on, and no performance overhead
is imposed.  Other security modules may then also be loaded if needed.

22 years ago[PATCH] Remove percpufication of in_flight counter in
Andrew Morton [Wed, 3 Sep 2003 18:13:12 +0000 (11:13 -0700)]
[PATCH] Remove percpufication of in_flight counter in

From: Ravikiran G Thirumalai <kiran@in.ibm.com>

The routine disk_round_stats showed up considerably under oprofile for high
disk io load (four processes doing dd to the same disk (different
partitions) on a 4 way).

This is because the counter in_flight which is per-cpu right now gets read
every time disk_round_stats gets called.  Per cpu counters like disk
statistics improve write speed, but reads are slow (since all cpus' local
counter values have to be read and summed up).  Considering the fact that
in_flight counter is modified post disk_round_stats (which reads the
in_flight counter) it is better not to per-cpu this counter.

Following patch does just that.  Below is the profile comparison before and
after the change.  This was on a 4 way PIII Xeon, 1G ram, 2.6.0-test4-mm2.

Before:
c010aa60 2910109  92.2249     poll_idle
c0275340 23208    0.73549     __copy_to_user_ll
c02753b0 11191    0.354657    __copy_from_user_ll
c0114aa0 7168     0.227163    mark_offset_tsc
c011ad10 6767     0.214455    schedule
c011a2b0 6741     0.213631    load_balance
c0138890 6710     0.212648    __generic_file_aio_write_nolock
c011d302 4683     0.14841     .text.lock.sched
c02e4b50 4533     0.143656    ahc_linux_isr
c029cec0 3582     0.113518    disk_round_stats
c0119b40 3509     0.111205    try_to_wake_up
c029d320 3306     0.104771    __make_request
c01567d0 3300     0.104581    __block_write_full_page
c0156c00 3299     0.104549    __block_prepare_write

After:
c010aa60 2777940  92.1302     poll_idle
c0275340 23479    0.778679    __copy_to_user_ll
c02753b0 10943    0.362924    __copy_from_user_ll
c0114aa0 7022     0.232884    mark_offset_tsc
c0138890 6988     0.231757    __generic_file_aio_write_nolock
c011ad10 6607     0.219121    schedule
c011d302 5771     0.191395    .text.lock.sched
c02e4a60 4458     0.147849    ahc_linux_isr
c011a2b0 3921     0.13004     load_balance
c01567d0 3569     0.118366    __block_write_full_page
c029d2a0 3540     0.117404    __make_request
...
c029ceb0 311      0.0103143   disk_round_stats
c011d5b0 299      0.00991631  remove_wait_queue

22 years ago[PATCH] MODULE_ALIAS() in char devices
Andrew Morton [Wed, 3 Sep 2003 18:13:04 +0000 (11:13 -0700)]
[PATCH] MODULE_ALIAS() in char devices

From: Rusty Russell <rusty@rustcorp.com.au>

Previously, default aliases were hardwired into modutils.  Now they should
be inside the modules, using MODULE_ALIAS() (they will be overridden by any
user alias).

22 years ago[PATCH] MODULE_ALIAS() in block devices
Andrew Morton [Wed, 3 Sep 2003 18:12:53 +0000 (11:12 -0700)]
[PATCH] MODULE_ALIAS() in block devices

From: Rusty Russell <rusty@rustcorp.com.au>

Previously, default aliases were hardwired into modutils.  Now they should
be inside the modules, using MODULE_ALIAS() (they will be overridden by any
user alias).

22 years ago[PATCH] might_sleep() improvements
Andrew Morton [Wed, 3 Sep 2003 18:12:43 +0000 (11:12 -0700)]
[PATCH] might_sleep() improvements

From: Mitchell Blank Jr <mitch@sfgoth.com>

This patch makes the following improvements to might_sleep():

 o Add a "might_sleep_if()" macro for when we might sleep only if some
   condition is met.  It's a bit tidier, and has an unlikely() in it.

 o Add might_sleep checks to skb_share_check() and skb_unshare() which
   sometimes need to allocate memory.

 o Make all architectures call might_sleep() in both down() and
   down_interruptible().  Before only ppc, ppc64, and i386 did this check.
   (sh did the check on down() but not down_interruptible())

22 years ago[PATCH] more slab page checking
Andrew Morton [Wed, 3 Sep 2003 18:12:33 +0000 (11:12 -0700)]
[PATCH] more slab page checking

Add checks for kfree() of a page which was allocated with __alloc_pages(),
and for free_pages() of a page which was allocated with kmalloc().

22 years ago[PATCH] proc_misc.c needs irq.h
Andrew Morton [Wed, 3 Sep 2003 18:12:25 +0000 (11:12 -0700)]
[PATCH] proc_misc.c needs irq.h

fs/proc/proc_misc.c: In function `show_stat':
fs/proc/proc_misc.c:423: `irq_desc' undeclared (first use in this function)

22 years ago[PATCH] 8250_acpi taints kernel
Andrew Morton [Wed, 3 Sep 2003 18:12:17 +0000 (11:12 -0700)]
[PATCH] 8250_acpi taints kernel

From: Dmitry Torokhov <dtor_core@ameritech.net>

8250_acpi module does not have MODULE_LICENSE specified.  8250_gsc does not
have it either but as I can't compile it I did not touch it.

22 years ago[PATCH] elevator insertion fixes
Andrew Morton [Wed, 3 Sep 2003 18:12:08 +0000 (11:12 -0700)]
[PATCH] elevator insertion fixes

From: Nick Piggin <piggin@cyberone.com.au>

This fixes a bug in deadline and AS that causes insert_here to be ignored on
blk_fs_requests. This has been causing problems with SCSI requeueing code.
It makes elevator insertion more correct as advertised wrt insert_here and
REQ_SOFTBARRIER.

It also fixes a buglet in the as_requeue code where the request wasn't being
put into the front of the list (in rare cases).

22 years ago[PATCH] add config option for qla1280 SCSI MMIO/ioport
Andrew Morton [Wed, 3 Sep 2003 18:12:00 +0000 (11:12 -0700)]
[PATCH] add config option for qla1280 SCSI MMIO/ioport

From: Andrey Panin <pazke@donpac.ru>

Add a config option which allows ioport/mmio selection for QLA1280 SCSI
driver.

With this patch applied QLA1280 can be used on Visws again.

22 years ago[PATCH] Fix rtc symbol clash and HPET config problems
Andrew Morton [Wed, 3 Sep 2003 18:11:51 +0000 (11:11 -0700)]
[PATCH] Fix rtc symbol clash and HPET config problems

The new HPET RTC emulation code uses a function in rtc.c, get_rtc_time().

So that function was made non-static.  Problem is, the same function name is
used elsewhere by some architectures, so there will be linkage problems.

And rtc_get_time() is used too, so I renamed it to rtc_get_rtc_time().

Also, the HPET code was setting CONFIG_HPET_EMULATE_RTC by hand in a header
file.  Fix it to use the Kconfig system properly.

22 years ago[PATCH] convert /proc/stat to seq_file
Andrew Morton [Wed, 3 Sep 2003 18:11:42 +0000 (11:11 -0700)]
[PATCH] convert /proc/stat to seq_file

From: "Randy.Dunlap" <rddunlap@osdl.org>

Anton needs this for ppc64.  Things overflow with a huge number of CPUs.

22 years ago[PATCH] Fix odd code in bio_add_page
Andrew Morton [Wed, 3 Sep 2003 18:11:33 +0000 (11:11 -0700)]
[PATCH] Fix odd code in bio_add_page

From: Neil Brown <neilb@cse.unsw.edu.au>

With the current code in bio_add_page, if fail_segments is ever set, it
stays set, so bio_add_page will eventually fail having recounted the
segmentation once.

I don't think this is intended.  This patch changes the code to allow
success if the recounting the segments helps.

(Jens has acked this)

22 years ago[PATCH] misc fixes
Andrew Morton [Wed, 3 Sep 2003 18:11:24 +0000 (11:11 -0700)]
[PATCH] misc fixes

- non_fatal.c comment fix (Zwane Mwaikambo <zwane@linuxpower.ca>)

- s/elevator/io scheduler/ in ll_rw_blk.c (Jens)

- update KJ mailing list address ("Randy.Dunlap" <rddunlap@osdl.org>)

- unused var in riscom8.c (Adrian Bunk <bunk@fs.tum.de>)

- add help texts to two OSS drivers (Adrian Bunk <bunk@fs.tum.de>)

- "PCMCIA SCSI adapter support" requires CONFIG_MODULES (Adrian Bunk
  <bunk@fs.tum.de>)

22 years ago[IPV{4,6}]: Fixing a bug that reading /proc/net/{udp,udp6} may drop some data.
Hideaki Yoshifuji [Wed, 3 Sep 2003 17:53:25 +0000 (10:53 -0700)]
[IPV{4,6}]: Fixing a bug that reading /proc/net/{udp,udp6} may drop some data.

22 years ago[NET]: Kill NET_PROFILE, has not built for years.
David S. Miller [Wed, 3 Sep 2003 17:51:33 +0000 (10:51 -0700)]
[NET]: Kill NET_PROFILE, has not built for years.

22 years ago[CRYPTO]: remove duplicate #includes in crypto/
Randy Dunlap [Wed, 3 Sep 2003 17:44:50 +0000 (10:44 -0700)]
[CRYPTO]: remove duplicate #includes in crypto/

22 years ago[NET]: remove duplicate #includes in net/
Randy Dunlap [Wed, 3 Sep 2003 17:44:06 +0000 (10:44 -0700)]
[NET]: remove duplicate #includes in net/

22 years ago[NET]: Convert ltpc to new initialization.
Stephen Hemminger [Wed, 3 Sep 2003 17:42:21 +0000 (10:42 -0700)]
[NET]: Convert ltpc to new initialization.

Originally from Al Viro
NE11-ltpc
* switched ltpc to dynamic allocation
* ltpc: embedded ->priv
* ltpc: fixed bugs in DMA allocation
* ltpc: fixed resource leaks on failure exits
* ltpc: fixed part of timer bugs (still a-f**ing-plenty of those)
* ltpc: fixed order of freeing bugs
Added
* switch to free_netdev

22 years ago[NET]: Loopback device simplification.
Stephen Hemminger [Wed, 3 Sep 2003 17:41:35 +0000 (10:41 -0700)]
[NET]: Loopback device simplification.

Now that all the magic chain of static devices is gone from Space.c
The initialization of the one remaining static device (ie the loopback driver)
can be simplified.

One small change was to reduce possibility of failing the initialization if
allocation of private data failed by just going without statistics.

22 years ago[NET]: Convert sbni initialization.
Stephen Hemminger [Wed, 3 Sep 2003 17:40:58 +0000 (10:40 -0700)]
[NET]: Convert sbni initialization.

Convert sbni driver
- new probing
- single allocation using alloc_netdev for private data

22 years ago[NET]: Convert tr probes to probe_old_netdevs().
Stephen Hemminger [Wed, 3 Sep 2003 17:40:11 +0000 (10:40 -0700)]
[NET]: Convert tr probes to probe_old_netdevs().

Analogous to previous patch.  Instead of dev_base list of static
entries, use a loop and dynamically allocate devices.

Tested only the 'no hardware' case.

22 years ago[NET]: Convert ether probes to probe_old_netdevs().
Stephen Hemminger [Wed, 3 Sep 2003 17:39:24 +0000 (10:39 -0700)]
[NET]: Convert ether probes to probe_old_netdevs().

Convert old ethernet device probing from dev_base linked list
to the probe_old_netdevs.

Blame me for this one ;-)

Builds and runs, but don't have old ISA hardware to really test it.
So please find some or review it carefully.

22 years ago[NET]: Convert cops over to new initialization.
Stephen Hemminger [Wed, 3 Sep 2003 17:38:42 +0000 (10:38 -0700)]
[NET]: Convert cops over to new initialization.

More from Al
NE12-cops
* switched cops to dynamic allocation
* cops: embedded ->priv
* cops: fixed ->irq clobbering on autoprobe
Added
* free_netdev

22 years ago[NET]: Convert SDLA to new initialization.
Stephen Hemminger [Wed, 3 Sep 2003 17:37:58 +0000 (10:37 -0700)]
[NET]: Convert SDLA to new initialization.

Based on Al viro's NE10-sdla
* switched sdla to dynamic allocation
* sdla: embedded ->priv
* sdla: fixed resource leaks on failure exits
Additionally fixes.
* get rid of cli/sti
* get rid of MOD/INC

Builds and probes, but don't have the hardware.
Driver has never built on 2.6 before this.

22 years ago[NET]: Add probe_old_netdevs() hook.
Stephen Hemminger [Wed, 3 Sep 2003 17:37:09 +0000 (10:37 -0700)]
[NET]: Add probe_old_netdevs() hook.

This set of patches is a mixture of Al's work to device initialization,
and some of my own to complete it for all the ether, tr, sbni, and loopback
devices.

The first patch adds the hook for converting old driver initialization
code over to dynamic allocation.

This part extracted from Al viro's set of net driver changes for ethertap.

22 years ago[NET]: Use free_netdev() even in error paths.
François Romieu [Wed, 3 Sep 2003 17:36:39 +0000 (10:36 -0700)]
[NET]: Use free_netdev() even in error paths.

22 years ago[NET]: DLCI driver cleanups for 2.6.x
Stephen Hemminger [Wed, 3 Sep 2003 17:35:52 +0000 (10:35 -0700)]
[NET]: DLCI driver cleanups for 2.6.x

- keep list of arrays for devices and use a lock
- make sure header is contiguous before overlaying data structure
- dynamically allocate dev->priv with alloc_netdev
- get rid of MOD_INC/DEC
- free devices on module unload
- keep refcount on slave device's since holding a ptr

22 years ago[ATM]: Lanai driver updates.
Mitchell Blank Jr. [Wed, 3 Sep 2003 17:34:37 +0000 (10:34 -0700)]
[ATM]: Lanai driver updates.

o Big performance improvement.  The version of the driver in the kernel
  still had a "mdelay(1)" after every register write.  This capped
  performance at about 8Mbps and ate tons of CPU time.  (Luckily, most
  users of this card are just terminating a DSL line where its not too
  noticeable)

  However, after removing this delay the card started getting out of
  sync with the driver under stress tests.  After a couple days of chasing
  the bug I finally determine that the card's support for transmitting
  partial PDUs just doesn't quite work as advertised (before we would send
  a partial PDU to completely fill a VCC's transmit buffer and then send
  the rest of the skb when more buffer space filled up).  The usefulness of
  this is somewhat doubtful anyway and removing it cleaned up a lot of code.

  I also added some memory barriers to make sure operations to the card
  happen in the correct order.

  Now for the first time ever we get near line-rate performance out of this
  card (~19Mb/s TCP in netperf between two ~300Mhz machines)

o Locking changes (essentially the patch Chas sent me a couple weeks ago
  with some minor tweaking)  I'm still not sure we're getting 100% of the
  cases right but it's definitely FAR better than the old lock-less version.

o Cleanup the backlog draining code in lanai_shutdown_tx_vci()

o Remove outdated comment describing how to compile the module

o Got rid of the "service_novcc_[tr]x" stats - it's really the same error
  as "service_[tr]x" - there's no reason to count them separately.

o Use the ATM_25_PCR constant instead of computing it for ourselves

22 years ago[ATM]: In atm_getaddr() do not copy_to_user() with locks held.
Chas Williams [Wed, 3 Sep 2003 17:34:02 +0000 (10:34 -0700)]
[ATM]: In atm_getaddr() do not copy_to_user() with locks held.

22 years ago[NET]: Fix ethtool_ops thinko in sungem.c
Jeff Garzik [Wed, 3 Sep 2003 17:33:32 +0000 (10:33 -0700)]
[NET]: Fix ethtool_ops thinko in sungem.c

22 years ago[IPV6]: Remove unnecessary linux/version.h include.
Felipe Damasio [Wed, 3 Sep 2003 17:33:05 +0000 (10:33 -0700)]
[IPV6]: Remove unnecessary linux/version.h include.

22 years ago[NET]: Use list_for_each() where applicable.
Maximilian Attems [Wed, 3 Sep 2003 17:32:06 +0000 (10:32 -0700)]
[NET]: Use list_for_each() where applicable.

22 years ago[NET]: Fix 64-bit warnings in af_netlink.c
Andrew Morton [Wed, 3 Sep 2003 17:27:18 +0000 (10:27 -0700)]
[NET]: Fix 64-bit warnings in af_netlink.c

22 years agoMerge http://linux-watchdog.bkbits.net/linux-2.5-watchdog
Wim Van Sebroeck [Thu, 4 Sep 2003 00:25:28 +0000 (02:25 +0200)]
Merge http://linux-watchdog.bkbits.net/linux-2.5-watchdog
into iguana.be:/home/wim/BitKeeper/projects/linux-2.5-watchdog