]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] ax25 build fix
Andrew Morton [Mon, 21 Apr 2003 03:21:04 +0000 (20:21 -0700)]
[PATCH] ax25 build fix

spin_lock() does not take a spinlock_t**

23 years ago[PATCH] parport_serial fix
Andrew Morton [Mon, 21 Apr 2003 03:20:56 +0000 (20:20 -0700)]
[PATCH] parport_serial fix

parport_serial is calling a couple of 8250 driver functions with no prototypes
in scope.

Turns out it was calling them with too many args, too.

23 years ago[PATCH] irqs: 1394
Andrew Morton [Mon, 21 Apr 2003 03:20:47 +0000 (20:20 -0700)]
[PATCH] irqs: 1394

Update 1394 to the new IRQ API

23 years ago[PATCH] irqs: video drivers
Andrew Morton [Mon, 21 Apr 2003 03:20:39 +0000 (20:20 -0700)]
[PATCH] irqs: video drivers

Update video drivers to the new IRQ API.

Almost none of them compile, so it was done on-spec.

23 years ago[PATCH] irqs: multimedia drivers
Andrew Morton [Mon, 21 Apr 2003 03:20:32 +0000 (20:20 -0700)]
[PATCH] irqs: multimedia drivers

Update a couple of media drivers to the new IRQ API.

Some stuff in there doesn't link btw:

drivers/built-in.o: In function `rds_waitread':
drivers/built-in.o(.text+0x6c152): undefined reference to `aci_port'
drivers/built-in.o: In function `rds_rawwrite':
drivers/built-in.o(.text+0x6c1a3): undefined reference to `aci_port'

23 years ago[PATCH] irqs: various char drivers
Andrew Morton [Mon, 21 Apr 2003 03:19:17 +0000 (20:19 -0700)]
[PATCH] irqs: various char drivers

Fix up a bunch of char drivers for the new IRQ API.

23 years ago[PATCH] irqs: watchdog drivers
Andrew Morton [Mon, 21 Apr 2003 03:19:09 +0000 (20:19 -0700)]
[PATCH] irqs: watchdog drivers

Update the watchdog drivers to the new IRQ API.

Also, give a couple of irq handlers static scope.

23 years ago[PATCH] irqs: ipmi driver
Andrew Morton [Mon, 21 Apr 2003 03:19:01 +0000 (20:19 -0700)]
[PATCH] irqs: ipmi driver

Update the ipmi driver to the new IRQ API

23 years ago[PATCH] irqs in sound/
Andrew Morton [Mon, 21 Apr 2003 03:18:53 +0000 (20:18 -0700)]
[PATCH] irqs in sound/

Updates all sound drivers to the new IRQ API.

The patch also fixes

- a return-with-lock-held

- a bunch of warnings and 64-bit bugs (CPU flags must be held in an
  unsigned long)

- jiffies must use unsigned longs

- two functions returning uninitialised values

23 years ago[PATCH] irqs: rtc
Andrew Morton [Mon, 21 Apr 2003 03:18:42 +0000 (20:18 -0700)]
[PATCH] irqs: rtc

update rtc driver to new IRQ API

23 years ago[PATCH] irqs: sym2
Andrew Morton [Mon, 21 Apr 2003 03:18:34 +0000 (20:18 -0700)]
[PATCH] irqs: sym2

update sym2 for new IRQ API

23 years ago[PATCH] irqs: drivers/block
Andrew Morton [Mon, 21 Apr 2003 03:18:27 +0000 (20:18 -0700)]
[PATCH] irqs: drivers/block

update drivers/block for new IRQ API.

23 years agoFix IO-APIC vector allocation boundary case - we never want to
Linus Torvalds [Sun, 20 Apr 2003 09:00:26 +0000 (02:00 -0700)]
Fix IO-APIC vector allocation boundary case - we never want to
allocate FIRST_SYSTEM_VECTOR as an external interrupt. It's unlikely,
but could happen if we have a _ton_ of interrupt sources.

Found by Chuck Ebbert.

23 years ago[PATCH] replace URLs in Kconfig
Randy Dunlap [Sun, 20 Apr 2003 08:20:38 +0000 (01:20 -0700)]
[PATCH] replace URLs in Kconfig

This is a patch from Robert P.J. Day that replaces www.linuxdoc.org
(which is outdated and unspported according to www.tldp.org)
with www.tldp.org in lots of Kconfig files.

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Sun, 20 Apr 2003 08:13:10 +0000 (01:13 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge
Linus Torvalds [Sun, 20 Apr 2003 07:52:14 +0000 (00:52 -0700)]
Merge

23 years ago[PATCH] remove a tiny bit of kdev_t abuse from the floppy driver
Christoph Hellwig [Sun, 20 Apr 2003 07:50:20 +0000 (00:50 -0700)]
[PATCH] remove a tiny bit of kdev_t abuse from the floppy driver

23 years ago[PATCH] remove some junk from hd98.c's ioctl implementation
Christoph Hellwig [Sun, 20 Apr 2003 07:50:12 +0000 (00:50 -0700)]
[PATCH] remove some junk from hd98.c's ioctl implementation

Also pointed out by Al.

23 years ago[PATCH] remove dasd_get_kdev
Christoph Hellwig [Sun, 20 Apr 2003 07:50:04 +0000 (00:50 -0700)]
[PATCH] remove dasd_get_kdev

Al pointed out that it's unused after my last series of devfs patches.

23 years ago[PATCH] replace __blk_run_queue with blk_run_queue
Christoph Hellwig [Sun, 20 Apr 2003 07:49:56 +0000 (00:49 -0700)]
[PATCH] replace __blk_run_queue with blk_run_queue

All callers of __blk_run_queue are of the form

spin_lock_irqsave(q->queue_lock, flags);
__blk_run_queue(q);
spin_unlock_irqrestore(q->queue_lock, flags);

Replace it with a blk_run_queue that does the locking itself.

23 years ago[PATCH] rename end_request in floppy() and raid1
Christoph Hellwig [Sun, 20 Apr 2003 07:49:47 +0000 (00:49 -0700)]
[PATCH] rename end_request in floppy() and raid1

In preparation of getting rid of the LOCAL_END_REQUEST mess.

23 years ago[PATCH] initrd.h
Christoph Hellwig [Sun, 20 Apr 2003 07:49:38 +0000 (00:49 -0700)]
[PATCH] initrd.h

split the initrd stuff out of blk.h, it's only needed in the boot code
and the ramdisk driver.

23 years agoMerge home.transmeta.com:/home/torvalds/v2.5/akpm
Linus Torvalds [Sun, 20 Apr 2003 07:47:49 +0000 (00:47 -0700)]
Merge home.transmeta.com:/home/torvalds/v2.5/akpm
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoUpdate ensoniq driver to return whether the interrupt was for it
Linus Torvalds [Sun, 20 Apr 2003 07:45:10 +0000 (00:45 -0700)]
Update ensoniq driver to return whether the interrupt was for it
or not.

23 years ago[PATCH] devfs: warn on block modes in devfs_register
Christoph Hellwig [Sun, 20 Apr 2003 07:43:34 +0000 (00:43 -0700)]
[PATCH] devfs: warn on block modes in devfs_register

23 years ago[PATCH] devfs: kill devfs_register_partition
Christoph Hellwig [Sun, 20 Apr 2003 07:43:26 +0000 (00:43 -0700)]
[PATCH] devfs: kill devfs_register_partition

23 years ago[PATCH] devfs: md
Christoph Hellwig [Sun, 20 Apr 2003 07:43:19 +0000 (00:43 -0700)]
[PATCH] devfs: md

23 years ago[PATCH] devfs: device-mapper
Christoph Hellwig [Sun, 20 Apr 2003 07:43:11 +0000 (00:43 -0700)]
[PATCH] devfs: device-mapper

23 years ago[PATCH] devfs: floppy
Christoph Hellwig [Sun, 20 Apr 2003 07:43:04 +0000 (00:43 -0700)]
[PATCH] devfs: floppy

The following patches switch the few drivers that have to register
devfs entries independand of gendisks to devfs_mk_bdev.

23 years ago[PATCH] devfs: xpram
Christoph Hellwig [Sun, 20 Apr 2003 07:42:56 +0000 (00:42 -0700)]
[PATCH] devfs: xpram

23 years ago[PATCH] devfs: mtdblock
Christoph Hellwig [Sun, 20 Apr 2003 07:42:48 +0000 (00:42 -0700)]
[PATCH] devfs: mtdblock

23 years ago[PATCH] devfs: sonycd
Christoph Hellwig [Sun, 20 Apr 2003 07:42:40 +0000 (00:42 -0700)]
[PATCH] devfs: sonycd

23 years ago[PATCH] devfs: sjcd
Christoph Hellwig [Sun, 20 Apr 2003 07:42:31 +0000 (00:42 -0700)]
[PATCH] devfs: sjcd

23 years ago[PATCH] devfs: optcd
Christoph Hellwig [Sun, 20 Apr 2003 07:42:24 +0000 (00:42 -0700)]
[PATCH] devfs: optcd

23 years ago[PATCH] devfs: gscd
Christoph Hellwig [Sun, 20 Apr 2003 07:42:15 +0000 (00:42 -0700)]
[PATCH] devfs: gscd

23 years ago[PATCH] devfs: aztcd
Christoph Hellwig [Sun, 20 Apr 2003 07:42:07 +0000 (00:42 -0700)]
[PATCH] devfs: aztcd

23 years ago[PATCH] devfs: swim3
Christoph Hellwig [Sun, 20 Apr 2003 07:42:00 +0000 (00:42 -0700)]
[PATCH] devfs: swim3

23 years ago[PATCH] devfs: rd
Christoph Hellwig [Sun, 20 Apr 2003 07:41:52 +0000 (00:41 -0700)]
[PATCH] devfs: rd

23 years ago[PATCH] devfs: nbd
Christoph Hellwig [Sun, 20 Apr 2003 07:41:44 +0000 (00:41 -0700)]
[PATCH] devfs: nbd

23 years ago[PATCH] devfs: loop
Christoph Hellwig [Sun, 20 Apr 2003 07:41:36 +0000 (00:41 -0700)]
[PATCH] devfs: loop

This and the next patches switches over drivers to gendisk.devfs_name.

23 years ago[PATCH] devfs: gendisk.devfs_name updates
Christoph Hellwig [Sun, 20 Apr 2003 07:41:28 +0000 (00:41 -0700)]
[PATCH] devfs: gendisk.devfs_name updates

Previously gendisk.devfs_name was used only for partitioned devices
or CDroms, and for the latter it was slightly broken.  Fix it to
work genericly for all gendisks.

23 years ago[PATCH] devfs: introduce devfs_mk_bdev
Christoph Hellwig [Sun, 20 Apr 2003 07:41:20 +0000 (00:41 -0700)]
[PATCH] devfs: introduce devfs_mk_bdev

Replaces devfs_register for block devices.  Note that we do NOT pass in
an operaion vector here - it was unused in devfs_register already
and our block device code fundamentally ties the operations to the
gendisk.  There will be only very few callers of this one anyway..

23 years ago[PATCH] devfs: superflous devfs_remove in scsi
Christoph Hellwig [Sun, 20 Apr 2003 07:41:11 +0000 (00:41 -0700)]
[PATCH] devfs: superflous devfs_remove in scsi

Already handled by the gendisk layer.

23 years ago[PATCH] devfs: remove dead devfs code in dasd
Christoph Hellwig [Sun, 20 Apr 2003 07:41:04 +0000 (00:41 -0700)]
[PATCH] devfs: remove dead devfs code in dasd

Dasd is partitioned - all devfs stuff is handled by the gendisk layer.

23 years ago[PATCH] devfs: switch over ubd to ->devfs_name
Christoph Hellwig [Sun, 20 Apr 2003 07:40:56 +0000 (00:40 -0700)]
[PATCH] devfs: switch over ubd to ->devfs_name

Duh, ubd is partitioned.

23 years ago[PATCH] devfs: remove devfs_unregister
Christoph Hellwig [Sun, 20 Apr 2003 07:40:48 +0000 (00:40 -0700)]
[PATCH] devfs: remove devfs_unregister

23 years ago[PATCH] devfs: uml
Christoph Hellwig [Sun, 20 Apr 2003 07:40:40 +0000 (00:40 -0700)]
[PATCH] devfs: uml

23 years ago[PATCH] devfs: swim3
Christoph Hellwig [Sun, 20 Apr 2003 07:40:32 +0000 (00:40 -0700)]
[PATCH] devfs: swim3

23 years ago[PATCH] devfs: ipmi
Christoph Hellwig [Sun, 20 Apr 2003 07:40:25 +0000 (00:40 -0700)]
[PATCH] devfs: ipmi

23 years ago[PATCH] devfs: s390
Christoph Hellwig [Sun, 20 Apr 2003 07:40:17 +0000 (00:40 -0700)]
[PATCH] devfs: s390

23 years ago[PATCH] devfs: miscdev
Christoph Hellwig [Sun, 20 Apr 2003 07:40:08 +0000 (00:40 -0700)]
[PATCH] devfs: miscdev

23 years ago[PATCH] devfs: videodev
Christoph Hellwig [Sun, 20 Apr 2003 07:40:00 +0000 (00:40 -0700)]
[PATCH] devfs: videodev

23 years ago[PATCH] devfs: sound
Christoph Hellwig [Sun, 20 Apr 2003 07:39:52 +0000 (00:39 -0700)]
[PATCH] devfs: sound

23 years ago[PATCH] devfs: usb
Christoph Hellwig [Sun, 20 Apr 2003 07:39:44 +0000 (00:39 -0700)]
[PATCH] devfs: usb

23 years ago[PATCH] devfs: dvb
Christoph Hellwig [Sun, 20 Apr 2003 07:39:36 +0000 (00:39 -0700)]
[PATCH] devfs: dvb

23 years ago[PATCH] devfs: input
Christoph Hellwig [Sun, 20 Apr 2003 07:39:29 +0000 (00:39 -0700)]
[PATCH] devfs: input

Make sure input always uses devfs_remove.  While at it I've also
remove lots of code duplication - every upper input driver contained
the code surrounding devfs_unregister in two identical copies.

23 years ago[PATCH] fbdev build fix
Andrew Morton [Sun, 20 Apr 2003 07:34:45 +0000 (00:34 -0700)]
[PATCH] fbdev build fix

- fb_prepare_logo() is calling the undefined find_logo().  I think it wants
  fb_find_logo().

- fb_prepare_logo is not __init, therefore fb_find_logo() cannot be __init.

23 years ago[PATCH] Aggregated disk statistics
Andrew Morton [Sun, 20 Apr 2003 07:30:01 +0000 (00:30 -0700)]
[PATCH] Aggregated disk statistics

From: Rick Lindsley <ricklind@us.ibm.com>

To access all the system's disk statitics we currently need to access one
sysfs file per disk.  This clearly will not be acceptable with thousands of
disks.

The patch aggregates the system-wide statistics in real time and exposes them
via /proc/diskstats

23 years ago[PATCH] Fix nfsctl for larger dev_t
Andrew Morton [Sun, 20 Apr 2003 07:29:55 +0000 (00:29 -0700)]
[PATCH] Fix nfsctl for larger dev_t

From: Andries.Brouwer@cwi.nl

The old NFS control interface passes dev_t's in from userspace.  This patch
keeps it working when the size of dev_t changes.

This is a deprecated interface - new nfs-utils uses an ascii representation
in exportfs.

Acked by Neil.

23 years ago[PATCH] smbfs: larger dev_t preparation
Andrew Morton [Sun, 20 Apr 2003 07:29:47 +0000 (00:29 -0700)]
[PATCH] smbfs: larger dev_t preparation

Discard fewer bits of the device number recd with smb.
This does not depend on anything else.

Andries

23 years ago[PATCH] prepare device mapper for larger dev_t
Andrew Morton [Sun, 20 Apr 2003 07:29:39 +0000 (00:29 -0700)]
[PATCH] prepare device mapper for larger dev_t

From: Joe Thornber <thornber@sistina.com>

The only other thing that will need changing in dm to cope with 64bit
dev_t concerns the bitset I'm using to keep track of allocated minor
numbers.  A trivial patch like this would work for now:

23 years ago[PATCH] don't shrink slab for highmem allocations
Andrew Morton [Sun, 20 Apr 2003 07:29:32 +0000 (00:29 -0700)]
[PATCH] don't shrink slab for highmem allocations

From: William Lee Irwin III <wli@holomorphy.com>

If one's goal is to free highmem pages, shrink_slab() is an ineffective
method of recovering them, as slab pages are all ZONE_NORMAL or ZONE_DMA.
Hence, this "FIXME: do not do for zone highmem".  Presumably this is a
question of policy, as highmem allocations may be satisfied by reaping slab
pages and handing them back; but the FIXME says what we should do.

23 years ago[PATCH] Extend map_vm_area()/get_vm_area()
Andrew Morton [Sun, 20 Apr 2003 07:29:25 +0000 (00:29 -0700)]
[PATCH] Extend map_vm_area()/get_vm_area()

From: Christoph Hellwig <hch@infradead.org> and David M-T

The ia64 port can use vmap(), but needs to be able to specify the protection
flags and the resulting vma's vm_flags.

The patch adds the two extra args to vmap(), updates the two callers and
fixes some comment spellos.

23 years ago[PATCH] fix CONFIG_NOMMU mismerges
Andrew Morton [Sun, 20 Apr 2003 07:29:19 +0000 (00:29 -0700)]
[PATCH] fix CONFIG_NOMMU mismerges

From: Christoph Hellwig <hch@lst.de>

we already have better stubs in nommu.c, the additional inlines in mm.h only
cause compile failures.

23 years ago[PATCH] Allocate hd_structs dynamically
Andrew Morton [Sun, 20 Apr 2003 07:29:12 +0000 (00:29 -0700)]
[PATCH] Allocate hd_structs dynamically

From: Badari Pulavarty <pbadari@us.ibm.com>

Here is the patch to allocate hd_struct dynamically as we find
partitions.

There are 3 things I didn't like in the patch.

1) The patch allocates 15 pointers instead of 15 hd_structs.  (incase of
   s= csi).  I was really hoping to get rid of "15" and make it really
   dynamic.  (In ca= se if we ever want to support more than 15 partitions
   per disk etc..).=20 I was thought about making it a linked list, but
   blk_partition_remap() needs to get to hd_struct for a given partition
   everytime we do IO.  So linked list would be bad, we really need direct
   access to partition in= fo.

2) I had to add "partno" to hd_struct, since part_dev_read() used to calc=
   ulate partition number from the address before.

3) kmalloc() failure in add_partition() will be silently ignored.

It saves 2048 bytes per disk.

23 years ago[PATCH] shm_get_stat-handle-hugetlb-pages.patch
Andrew Morton [Sun, 20 Apr 2003 07:29:05 +0000 (00:29 -0700)]
[PATCH] shm_get_stat-handle-hugetlb-pages.patch

From: William Lee Irwin III <wli@holomorphy.com>

shm_get_stat() didn't know about hugetlbpage-backed shm.

23 years ago[PATCH] DAC960: add call to blk_queue_bounce_limit
Andrew Morton [Sun, 20 Apr 2003 07:28:59 +0000 (00:28 -0700)]
[PATCH] DAC960: add call to blk_queue_bounce_limit

From: Dave Olien <dmo@osdl.org>

The following patch adds a call to blk_queue_bounce_limit to the DAC960
driver.  Otherwise, it uses bounce buffering more than it needs to.

23 years ago[PATCH] oom-kill: preferentially kill swapoff
Andrew Morton [Sun, 20 Apr 2003 07:28:52 +0000 (00:28 -0700)]
[PATCH] oom-kill: preferentially kill swapoff

From: Hugh Dickins <hugh@veritas.com>

The current behaviour is that once swapoff has filled memory, other tasks get
OOMkilled one by one until swapoff completes, or more likely hangs.  It is
better that swapoff be the first choice for OOMkill.

The patch changes the oom-killer so that it will kill off any
currently-running swapoff instance before killing any other task.

(Bit kludgy, couldn't think of a better way)

23 years ago[PATCH] Permit interruption of swapoff
Andrew Morton [Sun, 20 Apr 2003 07:28:45 +0000 (00:28 -0700)]
[PATCH] Permit interruption of swapoff

From: Hugh Dickins <hugh@veritas.com>

Sometimes you start a swapoff and, seeing how long it takes, wish you had
not: allow signal to interrupt and stop swapoff.

23 years ago[PATCH] Disallow swapoff if there is insufficient memory
Andrew Morton [Sun, 20 Apr 2003 07:28:39 +0000 (00:28 -0700)]
[PATCH] Disallow swapoff if there is insufficient memory

From: Hugh Dickins <hugh@veritas.com>

First of three small "stop swapoff" patches based on 2.5.67-mm3:

stop swapoff 1/3 vm_enough_memory?

Before embarking upon swapoff, check vm_enough_memory.  Mainly
for consistency in the overcommit_memory 2 (strict accounting) case:
fail with -ENOMEM if it wouldn't let the amount removed be committed.

Will always succeed in the overcommit_memory 1 case, as it should in
root-shoot-foot mode.  In the overcommit_memory 0 case, well, I don't
care much either way, so opted for the simplest code: no special case.
Which means it could now fail at the start; but that's unlikely (case 0
is over-generous) and only when it would have got stuck later on anyway.

23 years ago[PATCH] use __GFP_REPEAT in pmd_alloc_one()
Andrew Morton [Sun, 20 Apr 2003 07:28:32 +0000 (00:28 -0700)]
[PATCH] use __GFP_REPEAT in pmd_alloc_one()

Convert all pmd_alloc_one() implementations to use __GFP_REPEAT

23 years ago[PATCH] use __GFP_REPEAT in pte_alloc_one()
Andrew Morton [Sun, 20 Apr 2003 07:28:25 +0000 (00:28 -0700)]
[PATCH] use __GFP_REPEAT in pte_alloc_one()

Remove all the open-coded retry loops in various architectures, use
__GFP_REPEAT.

It could be that at some time in the future we change __GFP_REPEAT to give up
after ten seconds or so, so all the checks for failed allocations are
retained.

23 years ago[PATCH] make alloc_buffer_head take gfp_flags
Andrew Morton [Sun, 20 Apr 2003 07:28:19 +0000 (00:28 -0700)]
[PATCH] make alloc_buffer_head take gfp_flags

- alloc_buffer_head() should take the allocation mode as an arg, and not
  assume.

- Use __GFP_NOFAIL in JBD's call to alloc_buffer_head().

- Remove all the retry code from jbd_kmalloc() - do it via page allocator
  controls.

23 years ago[PATCH] implement __GFP_REPEAT, __GFP_NOFAIL, __GFP_NORETRY
Andrew Morton [Sun, 20 Apr 2003 07:28:12 +0000 (00:28 -0700)]
[PATCH] implement __GFP_REPEAT, __GFP_NOFAIL, __GFP_NORETRY

This is a cleanup patch.

There are quite a lot of places in the kernel which will infinitely retry a
memory allocation.

Generally, they get it wrong.  Some do yield(), the semantics of which have
changed over time.  Some do schedule(), which can lock up if the caller is
SCHED_FIFO/RR.  Some do schedule_timeout(), etc.

And often it is unnecessary, because the page allocator will do the retry
internally anyway.  But we cannot rely on that - this behaviour may change
(-aa and -rmap kernels do not do this, for instance).

So it is good to formalise and to centralise this operation.  If an
allocation specifies __GFP_REPEAT then the page allocator must infinitely
retry the allocation.

The semantics of __GFP_REPEAT are "try harder".  The allocation _may_ fail
(the 2.4 -aa and -rmap VM's do not retry infinitely by default).

The semantics of __GFP_NOFAIL are "cannot fail".  It is a no-op in this VM,
but needs to be honoured (or fix up the callers) if the VM ischanged to not
retry infinitely by default.

The semantics of __GFP_NOREPEAT are "try once, don't loop".  This isn't used
at present (although perhaps it should be, in swapoff).  It is mainly for
completeness.

23 years ago[PATCH] shmdt() speedup
Andrew Morton [Sun, 20 Apr 2003 07:28:04 +0000 (00:28 -0700)]
[PATCH] shmdt() speedup

From: William Lee Irwin III <wli@holomorphy.com>

Micro-optimize sys_shmdt(). There are methods of exploiting knowledge
of the vma's being searched to restrict the search space. These are:

(1) shm mappings always start their lives at file offset 0, so only
vma's above shmaddr need be considered. find_vma() can be used
to seek to the proper position in mm->mmap in O(lg(n)) time.

(2) The search is for a vma which could be a fragment of a broken-up
shm mapping, which would have been created starting at shmaddr
with vm_pgoff 0 and then continued no further into userspace
than shmaddr + size. So after having found an initial vma, find
the size of the shm segment it maps to calculate an upper bound
to the virtualspace that needs to be searched.

(3) mremap() would have caused the original checks to miss vma's mapping
the shm segment if shmaddr were the original address at which
the shm segments were attached. This does no better and no worse
than the original code in that situation.

(4) If the chain of references in vma->vm_file->f_dentry->d_inode->i_size
is not guaranteed by refcounting and/or the shm code then this is
oopsable; AFAICT an inode is always allocated.

23 years ago[PATCH] AIO mmap fix
Andrew Morton [Sun, 20 Apr 2003 07:27:57 +0000 (00:27 -0700)]
[PATCH] AIO mmap fix

From: Badari Pulavarty <pbadari@us.ibm.com>

Here is a small bug fix for AIO. get_user_pages() takes number
of pages to map as argument. (not in bytes)

23 years ago[PATCH] quotactl(): sync all quotas
Andrew Morton [Sun, 20 Apr 2003 07:27:50 +0000 (00:27 -0700)]
[PATCH] quotactl(): sync all quotas

From: Jan Kara <jack@suse.cz>

  I'm resending a patch which implements quotactl(2) call for syncing
all devices. Particulary it allows the caller not to specify the device
for syncing and in that case quotas on all the devices are written.
The patch is rather trivial (mostly moving the code).

23 years ago[PATCH] ATI Mach64 build fix
Andrew Morton [Sun, 20 Apr 2003 07:27:44 +0000 (00:27 -0700)]
[PATCH] ATI Mach64 build fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

Atyfb: Add missing parts of reversal of Mobility changes, allowing ATI Mach64
GX support to compile again.

23 years ago[PATCH] hugetlb math overflow fix
Andrew Morton [Sun, 20 Apr 2003 07:27:37 +0000 (00:27 -0700)]
[PATCH] hugetlb math overflow fix

From: William Lee Irwin III <wli@holomorphy.com>

And this one fixes an overflow when there is more than 4GB of hugetlb.

23 years ago[PATCH] follow_hugetlb_page fix
Andrew Morton [Sun, 20 Apr 2003 07:27:30 +0000 (00:27 -0700)]
[PATCH] follow_hugetlb_page fix

From: William Lee Irwin III <wli@holomorphy.com>

follow_hugetlb_page() drops out of the loop prematurely and fails to take the
appropriate refcounts if its starting address was not hugepage-aligned.

It looked a bit unclean too, so I rewrote it.  This fixes a bug, and more
importantly, makes the thing readable by something other than a compiler
(e.g.  programmers).

23 years ago[PATCH] Clean up various buffer-head dependencies
Andrew Morton [Sun, 20 Apr 2003 07:27:23 +0000 (00:27 -0700)]
[PATCH] Clean up various buffer-head dependencies

From: William Lee Irwin III <wli@holomorphy.com>

Remove page_has_buffers() from various functions, document the dependencies
on buffer_head.h from other files besides filemap.c, and s/this file/core VM/
in filemap.c

23 years ago[PATCH] Move __set_page_dirty_buffers to fs/buffer.c
Andrew Morton [Sun, 20 Apr 2003 07:27:14 +0000 (00:27 -0700)]
[PATCH] Move __set_page_dirty_buffers to fs/buffer.c

From: William Lee Irwin III <wli@holomorphy.com>

Move __set_page_dirty_buffers() to fs/buffer.c, as per the FIXME.

23 years ago[PATCH] Turn on NUMA rebalancing
Andrew Morton [Sun, 20 Apr 2003 07:27:09 +0000 (00:27 -0700)]
[PATCH] Turn on NUMA rebalancing

From: "Martin J. Bligh" <mbligh@aracnet.com>

I'd forgotten that I'd set this to only fire every 20s in the past, because
it would rebalance too agressively.  That seems to be fixed now, so we should
turn it back on.

23 years ago[PATCH] Make PCI scanning order the same as 2.4
Andrew Morton [Sun, 20 Apr 2003 07:27:02 +0000 (00:27 -0700)]
[PATCH] Make PCI scanning order the same as 2.4

From: Chuck Ebbert <76306.1226@compuserve.com>

2.4 builds its global PCI device list in breadth-first order.

2.5 is doing the scan that way but defers the construction of the global list
until later and then does it depth-first.  This causes devices to found in
different order by drivers.  The below fixed that problem for me.

Russell King has acked this change.

23 years ago[PATCH] keyboard.c Fix SAK in raw mode
Andrew Morton [Sun, 20 Apr 2003 07:26:55 +0000 (00:26 -0700)]
[PATCH] keyboard.c Fix SAK in raw mode

From: Chris Heath <chris@heathens.co.nz>

Trivial fix to get the SAK key working in raw and medium raw modes.  Patch is
against kernel 2.5.67.

23 years ago[PATCH] Minor fix for driver/serial/core.c
Andrew Morton [Sun, 20 Apr 2003 07:26:49 +0000 (00:26 -0700)]
[PATCH] Minor fix for driver/serial/core.c

From: Jean Tourrilhes <jt@bougret.hpl.hp.com>

The following command will do nothing at all on 2.5.X :
setserial /dev/ttyS0 uart none

23 years ago[PATCH] detect_lost_tick locking fixes
Andrew Morton [Sun, 20 Apr 2003 07:26:42 +0000 (00:26 -0700)]
[PATCH] detect_lost_tick locking fixes

From: john stultz <johnstul@us.ibm.com>

This patch fixes a race in the timer_interrupt code caused by
detect_lost_tick().  Since we're doing lost-tick compensation outside
timer->mark_offset, time can pass between time-source reads which can cause
gettimeofday inconsistencies.

Additionally detect_lost_tick() was broken for the PIT case, since the whole
point of detect_lost_tick() is to interpolate between two time sources to
find inconsistencies.  Additionally this could cause xtime_lock seq_lock
reader starvation which has been causing machine hangs for SMP boxes that use
the PIT as a time source.

This patch fixes the described race by removing detect_lost_tick() and
instead implementing the lost tick detection code inside mark_offset().

Some of the divs and mods being added here might concern folks, but by not
calling timer->get_offset() in detect_lost_tick() we eliminate much of the
same math.  I did some simple cycle counting and the new code comes out on
average equivalent or faster.

23 years ago[PATCH] get_offset_pit and do_timer_overflow vs IRQ locking
Andrew Morton [Sun, 20 Apr 2003 07:26:34 +0000 (00:26 -0700)]
[PATCH] get_offset_pit and do_timer_overflow vs IRQ locking

From: john stultz <johnstul@us.ibm.com>, Alexander Atanasov <alex@ssi.bg>

We want to make sure we update jiffies_p and count_p atomically.  So I'm
inserting the spin_unlock_irqrestore() after we update count_p, rather then
just before.

23 years ago[PATCH] Fix jiffies_to_time[spec | val] and converse to use
Andrew Morton [Sun, 20 Apr 2003 07:26:28 +0000 (00:26 -0700)]
[PATCH] Fix jiffies_to_time[spec | val] and converse to use

From: george anzinger <george@mvista.com>

In the current system (2.5.67) time_spec to jiffies, time_val to
jiffies and the converse (jiffies to time_val and jiffies to
time_spec) all use 1/HZ as the measure of a jiffie.  Because of the
inability of the PIT to actually generate an accurate 1/HZ interrupt,
the wall clock is updated with a more accurate value (999848
nanoseconds per jiffie for HZ = 1000).  This causes a 1/HZ
interpretation of jiffies based timing to run faster than the wall
clock, thus causing sleeps and timers to expire short of the requested
time.  Try, for example:

time sleep 60

This patch changes the conversion routines to use the same value as
the wall clock update code to do the conversions.

The actual math is almost all done at compile time.  The run time
conversions require little if any more execution time.

This patch must be applied after the patch I posted earlier today
which fixed the CLOCK_MONOTONIC resolution issue.

23 years ago[PATCH] Fix POSIX timers to give CLOCK_MONOTONIC full
Andrew Morton [Sun, 20 Apr 2003 07:26:21 +0000 (00:26 -0700)]
[PATCH] Fix POSIX timers to give CLOCK_MONOTONIC full

The POSIX CLOCK_MONOTONIC currently has only 1/HZ resolution.  Further, it is
tied to jiffies (i.e.  is a restatment of jiffies) rather than "xtime" or the
gettimeofday() clock.

This patch changes CLOCK_MONOTONIC to be a restatment of gettimeofday() plus
an offset to remove any clock setting activity from CLOCK_MONOTONIC.  An
offset is kept that represents the difference between CLOCK_MONOTONIC and
gettimeofday().  This offset is updated when ever the gettimeofday() clock is
set to back the clock setting change out of CLOCK_MONOTONIC (which by the
standard, can not be set).

With this change CLOCK_REALTIME (a direct restatement of gettimeofday()),
CLOCK_MONOTONIC and gettimeofday() will all tick at the same time and with
the same rate.  And all will be affected by NTP adjustments (save those which
actually set the time).

23 years ago[PATCH] Fix and clean up DCACHE_REFERENCED usage
Andrew Morton [Sun, 20 Apr 2003 07:26:14 +0000 (00:26 -0700)]
[PATCH] Fix and clean up DCACHE_REFERENCED usage

From: Maneesh Soni <maneesh@in.ibm.com>

This patch changes the way DCACHE_REFERENCED flag is used. It
got messed up in dcache_rcu iterations. I hope this will be ok now.

The flag was meant to be advisory flag which is used while
prune_dcache() so as not to free dentries which have recently
entered d_lru list. At first pass in prune_dcache the dentries
marked DCACHE_REFERENCED are left with the flag reset. and they
are freed in the next pass.

So, now we mark the dentry as DCACHE_REFERENCED when it is first
entering the d_lru list in dput() and resetthe flag in prune_dcache().
If the flag remains reset in the next call to prune_dcache(), the
dentry is then freed.

Also I don't think any file system have to use this flag as it is taken
care by the dcache layer. The patch removes such code from a few of file
systems. Moreover these filesystems were anyway doing worng thing as they
were changing the flag out of dcache_lock.

Changes:
o dput() marks dentry DCACHE_REFERENCED when it is added to the dentry_unused
  list
o no need to set the flag in dget, dget_locked, d_lookup as these guys anyway
  increments the ref count.
o check the ref count in prune_dcache and use DCACHE_REFERENCED flag just for
  two stage aging.
o remove code for setting DACACHE_REFERENCED from reiserfs, fat, xfs and
  exportfs.

23 years ago[PATCH] dentry_stat accounting fix
Andrew Morton [Sun, 20 Apr 2003 07:26:07 +0000 (00:26 -0700)]
[PATCH] dentry_stat accounting fix

From: Maneesh Soni <maneesh@in.ibm.com>

This patch the corrects the dentry_stat.nr_unused calculation.

In select_parent() and shrink_dcache_anon() we were not doing any adjustments
to the nr_unused count after manipulating the dentry_unused list.  Now the
nr_unused count is decremented if the dentry is on dentry_unused list and is
removed from there.

Further in the same routines, we have to adjust the nr_unused count again if
the dentry is moved to the end of d_lru list for pruning.

23 years ago[PATCH] dmfe: don't free skb with local interrupts disabled
Andrew Morton [Sun, 20 Apr 2003 07:26:00 +0000 (00:26 -0700)]
[PATCH] dmfe: don't free skb with local interrupts disabled

dev_kfree_skb() can end up calling local_bh_enable() which goes BUG if local
interrupts are disabled.  Apparently it can deadlock.

So move the skb freeing outside the lock in the dmfe driver.  It will
decrease the lock hold time as well.

23 years ago[PATCH] Fix nc98 partition parser link error
Andrew Morton [Sun, 20 Apr 2003 07:25:54 +0000 (00:25 -0700)]
[PATCH] Fix nc98 partition parser link error

Fix this:

fs/partitions/nec98.c:169: undefined reference to `parse_bsd'

23 years ago[PATCH] 3c574_cs fixes
Andrew Morton [Sun, 20 Apr 2003 07:25:47 +0000 (00:25 -0700)]
[PATCH] 3c574_cs fixes

- It was doing spin_lock_irqsave()/spin_unlock()

- Can't free the skb inside local_irq_save(): kfree_skb ends up running
  local_bh_enable(), which enables interrupts.

23 years agoInterrupt handlers should return whether the interrupt
Linus Torvalds [Sun, 20 Apr 2003 07:14:34 +0000 (00:14 -0700)]
Interrupt handlers should return whether the interrupt
was for them or not, so that the irq subsystem can properly
handle screaming shared interrupts.

So change the irq handlers to return a "irqretval_t", which
is either IRQ_HANDLED or IRQ_NONE.

23 years agoFix-ups for i830 from Arjan
Linus Torvalds [Sun, 20 Apr 2003 07:12:21 +0000 (00:12 -0700)]
Fix-ups for i830 from Arjan

23 years ago[PKT_SCHED]: Proper module refcounting for packet schedulers.
David S. Miller [Sat, 19 Apr 2003 17:57:31 +0000 (10:57 -0700)]
[PKT_SCHED]: Proper module refcounting for packet schedulers.

23 years ago[PKT_SCHED]: Proper module refcounting for packet classifiers.
David S. Miller [Sat, 19 Apr 2003 17:25:42 +0000 (10:25 -0700)]
[PKT_SCHED]: Proper module refcounting for packet classifiers.

23 years ago[IPSEC]: nexthdr in xfrm6_input needs to be int.
Hideaki Yoshifuji [Sat, 19 Apr 2003 13:42:38 +0000 (06:42 -0700)]
[IPSEC]: nexthdr in xfrm6_input needs to be int.