]> git.neil.brown.name Git - history.git/log
history.git
23 years ago[PATCH] kNFSd: NFSv4: tweak nfsd_readdir() for NFSv4
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:37 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: tweak nfsd_readdir() for NFSv4

This patch makes three small changes to nfsd_readdir().

First, the 'filldir' routine for NFSv4 may return an arbitrary error,
which should become the return value for nfsd_readdir().  I implemented
this by adding an 'nfserr' field to the 'struct readdir_cd'.

Second, in NFSv4 the caller of nfsd_readdir() will specify an attribute
bitmap, which must be communicated to the 'filldir' routine.  I implemented
this by adding a @bitmap parameter to nfsd_readdir() and a corresponding
field in the 'struct readdir_cd'.  (The bitmap is not interpreted in any
way by nfsd_readdir().)

Finally, NFSv4 defines a new error nfserr_readdir_nospc, which indicates
that there was not enough buffer space to encode a single entry.

23 years ago[PATCH] kNFSd: NFSv4: new argument to nfsd_access()
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:25 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: new argument to nfsd_access()

NFSv4 defines a new field in the ACCESS response: a bitmap to indicate
which access bits requested by the client are "supported", i.e. meaningful
for the object in question.

This patch adds a new parameter @supported to nfsd_access(), so that
nfsd_access() can set the value of this bitmap.

23 years ago[PATCH] kNFSd: NFSv4: tweak nfsd_create_v3() for NFSv4
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:13 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: tweak nfsd_create_v3() for NFSv4

File creation in NFSv4 is almost the same as in NFSv3, with one minor
difference.  If an UNCHECKED create is done, and the file exists, we
don't set any attributes.  Exception: If size==0 is specified as part
of the attributes, then we do truncate the file, but only after processing
the rest of the OPEN.  (File creation is always part of an OPEN request.)

This patch defines a new argument *truncp to nfsd_create_v3(), which
will be NULL for v3 requests.  For v4 requests, it will point to a
variable which should be set to 1 if file truncation is still needed.

The logic in nfsd_create_v3() is changed as follows: If
  - *truncp is not NULL
  - the create is UNCHECKED
  - the file exists
then nfsd_create_v3() returns immediately.  If size==0 is specified,
then *truncp is set to 1.

This is kind of a hack, but the only alternative I could see was creating
a new routine nfsd_create_v4(), which would be identical to nfsd_create_v3()
except for this point.

23 years ago[PATCH] kNFSd: NFSv4: allow type==0 in nfsd_unlink()
Kendrick M. Smith [Fri, 23 Aug 2002 04:38:02 +0000 (21:38 -0700)]
[PATCH] kNFSd: NFSv4: allow type==0 in nfsd_unlink()

If nfsd_unlink() is called with @type equal to 0, then let it do the
right thing regardless of the type of the file being unlinked.  This
is needed for the NFSv4 REMOVE operation, which works for any type of
file, even directories.

23 years ago[PATCH] kNFSd: NFSv4: overflow check in nfsd_commit()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:48 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: overflow check in nfsd_commit()

Sanity check COMMIT arguments by ensuring that (start)+(length) < 2^64.
The check is done in a way which is free of signedness pathologies in
all cases.

This change was inspired by pynfs, Peter Astrand's regression testsuite
for NFSv4 servers.  The change is necessary for all of the COMMIT tests
to pass.  However, it's a little open to debate whether the change is
really needed.  I'm curious to hear the opinions of other developers.

23 years ago[PATCH] kNFSd: NFSv4: allow resfh==fhp in fh_compose()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:37 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: allow resfh==fhp in fh_compose()

Change fh_compose() so that it will do the right thing if fhp==res_fh.
(This is convenient in the NFSv4 LOOKUP operation, which _replaces_
CURRENT_FH with the filehandle obtained by lookup.)

This requires extracting the interesting parts of the reference
filehandle first, then calling fh_put if it is a re-use.

23 years ago[PATCH] kNFSd: NFSv4: wipe out all evidence in fh_put()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:27 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: wipe out all evidence in fh_put()

When a filehandle is cleared with fh_put(), wipe out all traces by
clearing ->fh_pre_saved and ->fh_post_saved.  This prevents
fill_post_wcc() from complaining if the filehandle is later reused.
(This could happen in NFSv4 to CURRENT_FH if, for example, LOOKUP LOOKUP
occurs in a COMPOUND.)

23 years ago[PATCH] kNFSd: NFSv4: return err_nofilehandle if missing fh in fh_verify()
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:15 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: return err_nofilehandle if missing fh in fh_verify()

Return nfserr_nofilehandle (v4 only) in fh_verify() if the filehandle
has not been set.

23 years ago[PATCH] kNFSd: NFSv4: change ->rq_vers==3 to ->rq_vers>2
Kendrick M. Smith [Fri, 23 Aug 2002 04:37:05 +0000 (21:37 -0700)]
[PATCH] kNFSd: NFSv4: change ->rq_vers==3 to ->rq_vers>2

In a few places on the server, I had to change code that looked like:

   if (rqstp->rq_vers == 3)
       /* NFSv3 behavior */
   else
       /* NFSv2 behavior */

to:

   if (rqstp->rq_vers > 2)
       /* NFSv3 behavior */
   else
       /* NFSv2 behavior */

so that we would get the NFSv3 behavior, not the NFSv2 behavior,
in NFSv4.  This patch collects all changes of this type.

23 years ago[PATCH] kNFSd: NFSv4: fix type checking in fh_verify()
Kendrick M. Smith [Fri, 23 Aug 2002 04:36:52 +0000 (21:36 -0700)]
[PATCH] kNFSd: NFSv4: fix type checking in fh_verify()

Change the type checking in fh_verify().  This fixes a bug which
I reported on the mailing list a few days ago, and also adds a
new error code nfserr_symlink (v4 only).  This is returned whenever
an operation which is illegal for symlinks is attempted on a symlink,
and takes precedence over ERR_NOTDIR or ERR_INVAL.

23 years ago[PATCH] kNFSd: NFSv4: error codes in include/linux/nfsd/nfsd.h
Kendrick M. Smith [Fri, 23 Aug 2002 04:36:41 +0000 (21:36 -0700)]
[PATCH] kNFSd: NFSv4: error codes in include/linux/nfsd/nfsd.h

Add some new NFSv4-only error codes to include/linux/nfsd/nfsd.h

23 years ago[PATCH] kNFSd: new error codes for NFSv4
Kendrick M. Smith [Fri, 23 Aug 2002 04:36:31 +0000 (21:36 -0700)]
[PATCH] kNFSd: new error codes for NFSv4

This patch adds new NFSv4-only error codes to include/linux/nfs.h,
and also indicates which of the old error codes still exist in NFSv4.

23 years ago[PATCH] md: Fix up oops-able error message
Neil Brown [Fri, 23 Aug 2002 04:28:00 +0000 (21:28 -0700)]
[PATCH] md: Fix up oops-able error message

If we get here, then bio->bi_bdev isn't set, so we really
shouldn't de-reference it.

23 years ago[PATCH] md: Get rid of un-necessary warning in md
Neil Brown [Fri, 23 Aug 2002 04:27:47 +0000 (21:27 -0700)]
[PATCH] md: Get rid of un-necessary warning in md

23 years ago[PATCH] md: Make the old-ioctl warning in md only complain about MD ioctls.
Neil Brown [Fri, 23 Aug 2002 04:27:35 +0000 (21:27 -0700)]
[PATCH] md: Make the old-ioctl warning in md only complain about MD ioctls.

..as some standard ioctls expect the per-device ioctl routine
to return EINVAL and then fall back on a standard implementation.

23 years ago[PATCH] md: Remove per-personality 'operational' and 'write_only' flags
Neil Brown [Fri, 23 Aug 2002 04:27:25 +0000 (21:27 -0700)]
[PATCH] md: Remove per-personality 'operational' and 'write_only' flags

raid1, raid5 and multipath maintain their own
'operational' flag.  This is equivalent to
   !rdev->faulty
and so isn't needed.
Similarly raid1 and raid1 maintain a "write_only" flag
that is equivalnt to
   !rdev->in_sync
so it isn't needed either.

As part of implementing this change, we introduce some extra
flag bit in raid5 that are meaningful only inside 'handle_stripe'.
Some of these replace the "action" array which recorded what
actions were required (and would be performed after the stripe
spinlock was released).  This has the advantage of reducing our
dependance on MD_SB_DISKS which personalities shouldn't need
to know about.

23 years ago[PATCH] md: Remove 'alias_device' flag.
Neil Brown [Fri, 23 Aug 2002 04:27:13 +0000 (21:27 -0700)]
[PATCH] md: Remove 'alias_device' flag.

This flag was used by multipath to make sure only
one superblock was written, as there is only one
real device.

The relevant test is now more explicitly dependant on multipath,
and the flag is gone.

23 years ago[PATCH] md: Improve code for deciding whether to skip an IO in raid5
Neil Brown [Fri, 23 Aug 2002 04:27:02 +0000 (21:27 -0700)]
[PATCH] md: Improve code for deciding whether to skip an IO in raid5

Instread of the 'skip' variable, just test if rdev is NULL or not.

23 years ago[PATCH] md: Make spare handling simple ... personalities know less
Neil Brown [Fri, 23 Aug 2002 04:26:52 +0000 (21:26 -0700)]
[PATCH] md: Make spare handling simple ... personalities know less

1/ Personalities only know about raid_disks devices.
   Some might be not in_sync and so cannot be read from,
   but must be written to.
- change MD_SB_DISKS to ->raid_disks
- add tests for .write_only

2/ rdev->raid_disk is now -1 for spares.  desc_nr is maintained
   by analyse_sbs and sync_sbs.

3/ spare_inactive method is subsumed into hot_remove_disk
   spare_writable is subsumed into hot_add_disk.
   hot_add_disk decides which slot a new device will hold.

4/ spare_active now finds all non-in_sync devices and marks them
   in_sync.

5/ faulty devices are removed by the md recovery thread as soon
   as they are idle.  Any spares that are available are then added.

23 years ago[PATCH] md: Remove used_slot field from per-personality info
Neil Brown [Fri, 23 Aug 2002 04:26:38 +0000 (21:26 -0700)]
[PATCH] md: Remove used_slot field from per-personality info

This is equivalent to ->rdev != NULL, so it isn't needed.

23 years ago[PATCH] md: Keep track of number of pending requests on each component device on...
Neil Brown [Fri, 23 Aug 2002 04:26:27 +0000 (21:26 -0700)]
[PATCH] md: Keep track of number of pending requests on each component device on an MD array

This will allow us to know, in the event of a device failure, when the
device is completely unused and so can be disconnected from the
array.  Currently this isn't a problem as drives aren't normally disconnect
until after a repacement has been rebuilt, which is a LONG TIME, but that
will change shortly...

We always increment the count under a spinlock after checking that
it hasn't been disconnected already (rdev!= NULL).
We disconnect under the same spinlock after checking that the
count is zero.

23 years ago[PATCH] md: MD error handers and md_sync_acct now get rdev instead of bdev
Neil Brown [Fri, 23 Aug 2002 04:26:16 +0000 (21:26 -0700)]
[PATCH] md: MD error handers and md_sync_acct now get rdev instead of bdev

This simplifies the error handlers slighty, but allows for even more
simplification later.

23 years ago[PATCH] md: Store rdev instead of bdev in per-personality status arrays
Neil Brown [Fri, 23 Aug 2002 04:26:02 +0000 (21:26 -0700)]
[PATCH] md: Store rdev instead of bdev in per-personality status arrays

Holding the rdev instead of the bdev does cause an extra
de-reference, but it is conceptually cleaner and will allow
lots more tidying up.

23 years ago[PATCH] md: Silence a warning in md.c
Neil Brown [Fri, 23 Aug 2002 04:25:51 +0000 (21:25 -0700)]
[PATCH] md: Silence a warning in md.c

->major_name is "const char *" so we need to sprintf into the kmalloced
space *before* assigning that space to ->major_name.

23 years ago[PATCH] md: Fix assort typos in most recent MD patches..
Neil Brown [Fri, 23 Aug 2002 04:25:40 +0000 (21:25 -0700)]
[PATCH] md: Fix assort typos in most recent MD patches..

1/ Raid0 should not be accessing rdev->sb.

2/ Don't unlock rdev (which releases bdev) until after last use of bdev

3/ Fix typo in a printk ( = should be -)

4/ i should be dd_idx in compute_block

23 years ago[PATCH] Fix error message printed when not enough queue space
Neil Brown [Fri, 23 Aug 2002 04:22:00 +0000 (21:22 -0700)]
[PATCH] Fix error message printed when not enough queue space

23 years ago[PATCH] call svc_sock_setbufsize when socket created.
Neil Brown [Fri, 23 Aug 2002 04:21:49 +0000 (21:21 -0700)]
[PATCH] call svc_sock_setbufsize when socket created.

bufsiz is re-evaluated on recv if SK_CHNGBUF is set,
but recv will never be reached if the buffers are too small.
So we have to set to to something vaguely reasonable
at init time.

23 years ago[PATCH] Fix two problems with multiple concurrent nfs/tcp connects.
Neil Brown [Fri, 23 Aug 2002 04:21:39 +0000 (21:21 -0700)]
[PATCH] Fix two problems with multiple concurrent nfs/tcp connects.

1/ connect requests would be get lost...
  As the comment at the top of svcsock.c says when discussing
  SK_CONN:
 * after a set, svc_sock_enqueue must be called.

  We didn't and so lost conneciton requests.

2/ set the max accept backlog to a more reasonable number to cope
   with bursts of lots of connection requests.

23 years ago[PATCH] trivial: 2.5.31+bk forgotten endmenu
Sam Ravnborg [Fri, 23 Aug 2002 04:19:44 +0000 (21:19 -0700)]
[PATCH] trivial: 2.5.31+bk forgotten endmenu

23 years agoCset exclude: rml@tech9.net|ChangeSet|20020820192302|03508
Linus Torvalds [Wed, 21 Aug 2002 09:59:57 +0000 (02:59 -0700)]
Cset exclude: rml@tech9.net|ChangeSet|20020820192302|03508

23 years ago[PATCH] Fix YA bug in __page_cache_release
Andrew Morton [Tue, 20 Aug 2002 10:45:33 +0000 (03:45 -0700)]
[PATCH] Fix YA bug in __page_cache_release

__page_cache_release() needs to check PG_lru inside the lock, because
page reclaim may have taken the page off the LRU while this CPU waits
on the lock.

That's three bugs in a single twenty-line function.  So far.

23 years ago[PATCH] vmalloc.c error path fixes
Marcus Alanen [Tue, 20 Aug 2002 10:45:28 +0000 (03:45 -0700)]
[PATCH] vmalloc.c error path fixes

This fixes some problems in vmalloc.c.  The two first parts of the diff
fix a spinlock being held if an error occurs in map_vm_area, and the
last part fixes the error path of __vmalloc.

23 years agoHmm.. It was never correct to directly include <asm/smplock.h>,
Linus Torvalds [Tue, 20 Aug 2002 07:09:57 +0000 (00:09 -0700)]
Hmm.. It was never correct to directly include <asm/smplock.h>,
but some files still did (and got the wrong results on UP).

Since they didn't actually _use_ the BKL anyway, remove the
include.

23 years agoMove x86 big-kernel-lock implementation into <linux/smp_lock.h>,
Linus Torvalds [Tue, 20 Aug 2002 07:01:08 +0000 (00:01 -0700)]
Move x86 big-kernel-lock implementation into <linux/smp_lock.h>,
since it was generic.

Remove all architecture-specific <asm/smplock.h> files.

23 years ago[PATCH] Improve READDIR/READDIRPLUS sanity checking..
Trond Myklebust [Tue, 20 Aug 2002 05:24:20 +0000 (22:24 -0700)]
[PATCH] Improve READDIR/READDIRPLUS sanity checking..

 - Use req->rq_received to determine the message length instead of
   assuming that it goes to the end of the page.

 - If the server returned an illegal record so that we cannot make
   progress by retrying the request on a fresh page, truncate the
   entire listing and return a syslog error.

23 years ago[PATCH] Improve NFS READ reply sanity checking
Trond Myklebust [Tue, 20 Aug 2002 05:24:14 +0000 (22:24 -0700)]
[PATCH] Improve NFS READ reply sanity checking

 - Fix the check for whether or not the received message length has
   somehow been truncated: we need to use req->rq_received rather
   than the receive buffer length (req->rq_rlen).

 - Ensure that we set res->eof correctly. In particular, we need to
   clear it if we find ourselves attempting to recover from a
   truncated READ.

 - Don't set PageUptodate() on those pages that are the victim of
   message truncation.

23 years ago[PATCH] spinlock.h cleanup
Robert Love [Tue, 20 Aug 2002 05:23:02 +0000 (22:23 -0700)]
[PATCH] spinlock.h cleanup

 - cleanup #defines: I do not follow the rationale behind the
   odd line-wrapped defines at the beginning of the file.  If
   we have to use multiple lines, then we might as well do so
   cleanly and according to normal practice...

 - Remove a level of indirection: do not have spin_lock_foo
   use spin_lock - just explicitly call what is needed.

 - we do not need to define the spin_lock functions twice, once
   for CONFIG_PREEMPT and once for !CONFIG_PREEMPT.  Defining
   them once with the preempt macros will optimize away fine.

 - cleanup preempt.h too

 - other misc. cleanup, improved comments, reordering, etc.

23 years ago[PATCH] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6
Ingo Molnar [Tue, 20 Aug 2002 01:15:30 +0000 (18:15 -0700)]
[PATCH] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6

This fixes the ptrace wait4() anomaly that can be observed in any
previous Linux kernel i could get my hands at.

If the parent still has other children (that are being traced by
somebody), we wait for them or return immediately without an error in
case of WNOHANG.

23 years ago[PATCH] struct superblock cleanups.
Dave Jones [Tue, 20 Aug 2002 01:10:58 +0000 (18:10 -0700)]
[PATCH] struct superblock cleanups.

Finally, this chunk removes the references to the UFS & ROMFS
entries in struct superblock, leaving just ext3 and hpfs as
the only remaining fs's to be fixed up.

23 years ago[PATCH] UFS superblock cleanup.
Dave Jones [Tue, 20 Aug 2002 01:10:54 +0000 (18:10 -0700)]
[PATCH] UFS superblock cleanup.

This one from Brian Gerst seperates UFS from
the struct superblock union.

23 years ago[PATCH] ROMFS superblock cleanup.
Dave Jones [Tue, 20 Aug 2002 01:10:50 +0000 (18:10 -0700)]
[PATCH] ROMFS superblock cleanup.

This patch from Christoph Hellwig divorces ROMFS
from the struct superblock union, as has been done
to various other filesystems during 2.5

23 years ago[PATCH] Fix a BUG in try_to_unmap()
Andrew Morton [Mon, 19 Aug 2002 13:04:55 +0000 (06:04 -0700)]
[PATCH] Fix a BUG in try_to_unmap()

try_to_unmap() dies if the to-be-unmapped page has a non-NULL ->mapping.

But the preceding logic in shrink_cache() forgot about the
rarely-occurring pages which have buffers and no ->mapping.

23 years ago[PATCH] fix uniprocessor lockups
Andrew Morton [Mon, 19 Aug 2002 13:04:50 +0000 (06:04 -0700)]
[PATCH] fix uniprocessor lockups

I have a test_and_set_bit(PG_chainlock, page->flags) in page reclaim.
Which works fine on SMP.  But on uniprocessor, we made
pte_chain_unlock() a no-op, so all pages end up with PG_chainlock set.
refill_inactive() cannot move any pages onto the inactive list and the
machine dies.

The patch removes the test_and_set_bit optimisation in there and just
uses pte_chain_lock().  If we want that (dubious) optimisation back
then let's do it right and create pte_chain_trylock().

23 years ago[PATCH] Fix a race between __page_cache_release() and shrink_cache()
Andrew Morton [Mon, 19 Aug 2002 13:04:46 +0000 (06:04 -0700)]
[PATCH] Fix a race between __page_cache_release() and shrink_cache()

__page_cache_release() needs to recheck the page count inside the LRU
lock, because shrink_cache() may have found the page on the LRU and
incremented its refcount again.

Which is carefully documented over __pagevec_release().  Duh.

23 years ago[PATCH] fix link problem in ips driver
Dave Hansen [Mon, 19 Aug 2002 11:07:45 +0000 (04:07 -0700)]
[PATCH] fix link problem in ips driver

23 years ago[PATCH] NUMA-Q disable irqbalance
Dave Hansen [Mon, 19 Aug 2002 11:07:40 +0000 (04:07 -0700)]
[PATCH] NUMA-Q disable irqbalance

Here's a patch from Andrea's tree that uses IRQ_BALANCE_INTERVAL to
define how often interrupts are balanced, staying independent from HZ.

  It also makes sure that there _is_ a change to the configuration
before it actually writes it.  It reminds me of the mod_timer
optimization.

23 years agoRemove extraneous ptrace.h include
Linus Torvalds [Mon, 19 Aug 2002 06:32:22 +0000 (23:32 -0700)]
Remove extraneous ptrace.h include

23 years ago[PATCH] O(1) sys_exit(), threading, scalable-exit-2.5.31-B4
Ingo Molnar [Mon, 19 Aug 2002 06:07:20 +0000 (23:07 -0700)]
[PATCH] O(1) sys_exit(), threading, scalable-exit-2.5.31-B4

the attached patch updates a number of items:

 - adds cleanups suggested by Christoph Hellwig: needed unlikely()
   statements, a superfluous #define and line length problems.

 - splits up the global ptrace list into per-task ptrace lists. This was
   pretty straightforward, and this makes the worst-case exit() latency
   O(nr_children).

the per-task ptrace lists unearthed a bug that the previous code did not
take care of: tasks on the ptrace list have to be correctly reparented as
well. This patch passed my stresstests as well.

23 years ago[PATCH] Re: Boot failure in 2.5.31 BK with new TLS patch
Ingo Molnar [Sat, 17 Aug 2002 05:10:39 +0000 (22:10 -0700)]
[PATCH] Re: Boot failure in 2.5.31 BK with new TLS patch

oh, setup.S. nasty indeed, bogus GDT limit.

23 years ago[PATCH] Thread exit notification by futex
Ingo Molnar [Sat, 17 Aug 2002 05:10:35 +0000 (22:10 -0700)]
[PATCH] Thread exit notification by futex

This updates the CLONE_CLEARTID case to use futexes to make it easier
to wait for a thread exit.

glibc/pthreads had been updated to use the TID-futex, this removes an
extra system-call and it also simplifies the pthread_join() code.  The
pthreads testcode works just fine with the new kernel and does not work
with a kernel that does not do the futex wakeup, so it's working fine.

23 years agoDon't BUG_ON() SCSI length confusion. Print out the problem
Linus Torvalds [Sat, 17 Aug 2002 05:07:02 +0000 (22:07 -0700)]
Don't BUG_ON() SCSI length confusion. Print out the problem
and the call trace instead.

23 years ago[PATCH] More display -> fb_info fixes for new fbdev
Petr Vandrovec [Fri, 16 Aug 2002 09:57:02 +0000 (02:57 -0700)]
[PATCH] More display -> fb_info fixes for new fbdev

This is the second part of "broken cfb* support in the 2.5.31-bk".  I
needed fbcon-cfb2 on one of my systems, and so I went through all
fbcon-* drivers and fixed them.

line_length, type, type_aux and visual were moved from display to
fb_info in last James Simmon's fbdev update.  Unfortunately lowlevel
support modules were not updated.

23 years agoMerge bk://matroxfb.bkbits.net/linux-2.5
Linus Torvalds [Fri, 16 Aug 2002 09:56:25 +0000 (02:56 -0700)]
Merge bk://matroxfb.bkbits.net/linux-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] PageReserved test in __pagevec_release()
Andrew Morton [Fri, 16 Aug 2002 09:36:53 +0000 (02:36 -0700)]
[PATCH] PageReserved test in __pagevec_release()

I want to find a way to get all those PageReserved tests out of
there, because they are very expensive.  But now is not the
time.

23 years ago[PATCH] oops from console subsystem: dereferencing wild pointer
Petr Vandrovec [Fri, 16 Aug 2002 08:55:26 +0000 (01:55 -0700)]
[PATCH] oops from console subsystem: dereferencing wild pointer

Make sure that the VC tty pointer is cleared when the tty is free'd.

23 years agoMerge http://ppc.bkbits.net/for-linus-ppc64drivers
Linus Torvalds [Fri, 16 Aug 2002 05:46:10 +0000 (22:46 -0700)]
Merge http://ppc.bkbits.net/for-linus-ppc64drivers
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://ppc@ppc.bkbits.net/for-linus-ppc64drivers
Anton Blanchard [Sat, 17 Aug 2002 14:00:39 +0000 (00:00 +1000)]
Merge bk://ppc@ppc.bkbits.net/for-linus-ppc64drivers
into samba.org:/scratch/anton/linux-2.5_ppc64drivers

23 years agoMerge http://linux-acpi.bkbits.net/linux-acpi
Linus Torvalds [Fri, 16 Aug 2002 05:16:50 +0000 (22:16 -0700)]
Merge http://linux-acpi.bkbits.net/linux-acpi
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://linux-acpi@linux-acpi.bkbits.net/linux-acpi
Andy Grover [Fri, 16 Aug 2002 04:51:25 +0000 (21:51 -0700)]
Merge bk://linux-acpi@linux-acpi.bkbits.net/linux-acpi
into groveronline.com:/root/bk/linux-acpi

23 years agoMerge groveronline.com:/root/bk/linux-2.5
Andy Grover [Fri, 16 Aug 2002 04:40:42 +0000 (21:40 -0700)]
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi

23 years agoMerge http://linux.bkbits.net/linux-2.5
Andy Grover [Fri, 16 Aug 2002 04:39:40 +0000 (21:39 -0700)]
Merge http://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/ua/repos/l/linux-acpi/linux-acpi

23 years agoMerge master.kernel.org:/home/axboe/BK/linux-2.5-ide
Linus Torvalds [Fri, 16 Aug 2002 03:23:41 +0000 (20:23 -0700)]
Merge master.kernel.org:/home/axboe/BK/linux-2.5-ide
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoAdd in 2.4 ide-scsi
Jens Axboe [Fri, 16 Aug 2002 16:23:35 +0000 (18:23 +0200)]
Add in 2.4 ide-scsi

23 years agoAdd back in the missing 2.4-ide bits from hdreg.h These also wants a
Jens Axboe [Fri, 16 Aug 2002 16:11:29 +0000 (18:11 +0200)]
Add back in the missing 2.4-ide bits from hdreg.h These also wants a
bit of cleaning later.

23 years agoAdd back in the request types that 2.4 still uses, need to clean these
Jens Axboe [Fri, 16 Aug 2002 16:10:56 +0000 (18:10 +0200)]
Add back in the request types that 2.4 still uses, need to clean these
a bit later

23 years agoAdd x86 versions of various irq and resource stuff for 2.4-ide
Jens Axboe [Fri, 16 Aug 2002 16:09:31 +0000 (18:09 +0200)]
Add x86 versions of various irq and resource stuff for 2.4-ide

23 years agoAdd missing pci ids for various ide controllers
Jens Axboe [Fri, 16 Aug 2002 16:08:10 +0000 (18:08 +0200)]
Add missing pci ids for various ide controllers

23 years agoAdd 2.4 IDE core, based on late 2.4.19-pre-acX version
Jens Axboe [Fri, 16 Aug 2002 16:07:20 +0000 (18:07 +0200)]
Add 2.4 IDE core, based on late 2.4.19-pre-acX version

23 years agoDelete 2.5 IDE core
Jens Axboe [Fri, 16 Aug 2002 16:06:05 +0000 (18:06 +0200)]
Delete 2.5 IDE core

23 years ago[PATCH] per-disk gendisks in i2o
Alexander Viro [Fri, 16 Aug 2002 02:57:50 +0000 (19:57 -0700)]
[PATCH] per-disk gendisks in i2o

Note: I've also fixed several obvious "forgot to update" problems (changed
prototype of blk_init_queue(), etc.) but I hadn't touched the DMA-mapping
stuff, so it still doesn't work with 2.5; moreover, it misses a lot of fixes
done in 2.4, but that's fun for Alan - he's the maintainer

23 years ago[PATCH] per-disk gendisks in md.c
Alexander Viro [Fri, 16 Aug 2002 02:57:45 +0000 (19:57 -0700)]
[PATCH] per-disk gendisks in md.c

23 years agoppc64: 32 bit mknod and chmod need no sign extension
Anton Blanchard [Sat, 17 Aug 2002 04:37:45 +0000 (14:37 +1000)]
ppc64: 32 bit mknod and chmod need no sign extension

23 years agoppc64: remove some unimplemented syscalls
Anton Blanchard [Sat, 17 Aug 2002 04:30:21 +0000 (14:30 +1000)]
ppc64: remove some unimplemented syscalls

23 years agoppc64: 32 bit syscall cleanup, first step in making this stuff generic.
Anton Blanchard [Sat, 17 Aug 2002 04:16:38 +0000 (14:16 +1000)]
ppc64: 32 bit syscall cleanup, first step in making this stuff generic.

23 years agoppc64: missing include
Anton Blanchard [Sat, 17 Aug 2002 02:30:36 +0000 (12:30 +1000)]
ppc64: missing include

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Sat, 17 Aug 2002 02:23:33 +0000 (12:23 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_work

23 years agoppc64: Fix breakage when I added sys_readahead
Anton Blanchard [Sat, 17 Aug 2002 02:12:53 +0000 (12:12 +1000)]
ppc64: Fix breakage when I added sys_readahead

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 16 Aug 2002 20:44:44 +0000 (06:44 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_work

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 16 Aug 2002 01:58:19 +0000 (11:58 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_work

23 years agoMissed prototype for 'system_running' fix.
Linus Torvalds [Thu, 15 Aug 2002 14:33:02 +0000 (07:33 -0700)]
Missed prototype for 'system_running' fix.

23 years ago[PATCH] memory leak in current BK
Andrew Morton [Thu, 15 Aug 2002 13:40:14 +0000 (06:40 -0700)]
[PATCH] memory leak in current BK

Well I didn't test that very well.  __page_cache_release() is doing a
__free_page() on a zero-ref page, so __free_pages() sends the refcount
negative and doesn't free it.  With patch #8, page_cache_release()
almost never frees pages, but it must have been leaking a little bit.
Lucky it showed up.

This fixes it, and also adds a missing PageReserved test in put_page().
Which makes put_page() identical to page_cache_release(), but there are
header file woes.  I'll fix that up later.

23 years ago[PATCH] Reorder unlocking in rq_unlock
Brad Heilbrun [Thu, 15 Aug 2002 11:25:40 +0000 (04:25 -0700)]
[PATCH] Reorder unlocking in rq_unlock

This trivial patch reorders the unlocking in rq_unlock()... I was
tired of getting stack dumps in my messages file.

23 years agoDon't allow user-level helpers to be run when our infrastructure
Linus Torvalds [Thu, 15 Aug 2002 11:25:33 +0000 (04:25 -0700)]
Don't allow user-level helpers to be run when our infrastructure
isn't ready for it (either during early boot, or at shutdown)

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.isdn
Linus Torvalds [Thu, 15 Aug 2002 09:51:28 +0000 (02:51 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.isdn
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoISDN: Remove debugging code
Kai Germaschewski [Thu, 15 Aug 2002 12:16:54 +0000 (07:16 -0500)]
ISDN: Remove debugging code

23 years agoISDN: Fix BC_BUSY problem
Kai Germaschewski [Thu, 15 Aug 2002 12:16:22 +0000 (07:16 -0500)]
ISDN: Fix BC_BUSY problem

Make sure to properly reset the state after disconnect

(Karsten Keil)

23 years agoISDN: Change Christian Mock's email adress
Kai Germaschewski [Thu, 15 Aug 2002 12:15:24 +0000 (07:15 -0500)]
ISDN: Change Christian Mock's email adress

23 years agoISDN: __FUNCTION__ cleanup
Kai Germaschewski [Thu, 15 Aug 2002 12:06:58 +0000 (07:06 -0500)]
ISDN: __FUNCTION__ cleanup

Newer gcc's don't like string concat with __FUNCTION__, so
use %s and __FUNCTION__ as argument.

23 years agoISDN: Use C99 initializers
Kai Germaschewski [Thu, 15 Aug 2002 12:01:17 +0000 (07:01 -0500)]
ISDN: Use C99 initializers

Thanks to Rusty for posting the script...

23 years agoISDN: Fix Config.in problem
Kai Germaschewski [Thu, 15 Aug 2002 11:56:21 +0000 (06:56 -0500)]
ISDN: Fix Config.in problem

drivers/isdn/hysdn/Config.in was referring to
CONFIG_ISDN_CAPI before it was defined.

Noticed by Greg Banks.

23 years ago[PATCH] thread management - take three
Ingo Molnar [Thu, 15 Aug 2002 09:48:18 +0000 (02:48 -0700)]
[PATCH] thread management - take three

you have applied my independent-pointer patch already, but i think your
CLEARTID variant is the most elegant solution: it reuses a clone argument,
thus reduces the number of arguments and it's also a nice conceptual pair
to the existing SETTID call. And the TID field can be used as a 'usage'
field as well, because the TID (PID) can never be 0, reducing the number
of fields in the TCB. And we can change the userspace locking code to use
the TID field no problem.

23 years ago[PATCH] Include tgid when finding next_safe in get_pid()
Paul Larson [Thu, 15 Aug 2002 09:41:39 +0000 (02:41 -0700)]
[PATCH] Include tgid when finding next_safe in get_pid()

Include tgid when finding next_safe in get_pid()

23 years agoMerge groveronline.com:/root/bk/linux-2.5
Andy Grover [Thu, 15 Aug 2002 09:00:07 +0000 (02:00 -0700)]
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi

23 years agoACPI interpreter updates:
Andy Grover [Thu, 15 Aug 2002 08:35:28 +0000 (01:35 -0700)]
ACPI interpreter updates:
- Improved ACPI mode switching (Kochi Takayoshi)
- Improved namespace handling of parent operator "^^"
- Changed the names of some proprocessor macros
- Other improvements

23 years agoMerge groveronline.com:/root/bk/linux-2.5
Andy Grover [Thu, 15 Aug 2002 08:24:56 +0000 (01:24 -0700)]
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi

23 years ago[PATCH] reduce stack usage of sanitize_e820_map
Benjamin LaHaise [Thu, 15 Aug 2002 07:59:57 +0000 (00:59 -0700)]
[PATCH] reduce stack usage of sanitize_e820_map

Currently, sanitize_e820_map uses 0x738 bytes of stack.  The patch below
moves the arrays into __initdata, reducing stack usage to 0x34 bytes.

23 years ago[PATCH] uninitialised local in generic_file_write
Andrew Morton [Thu, 15 Aug 2002 05:43:50 +0000 (22:43 -0700)]
[PATCH] uninitialised local in generic_file_write

generic_file_write_nolock() is initialising the pagevec too late,
so if we take an early `goto out' the kernel oopses.  O_DIRECT writes
take that path.

23 years ago[PATCH] PCI ID's for 2.5.31
Martin Mares [Thu, 15 Aug 2002 04:34:02 +0000 (21:34 -0700)]
[PATCH] PCI ID's for 2.5.31

I've filtered all submissions to the ID database, merged new ID's from
both 2.4.x and 2.5.x kernels and here is the result -- patch to 2.5.31
pci.ids with all the new stuff. Could you please send it to Linus?
(I would do it myself, but it seems I'll have a lot of work with the
floods in Prague very soon.)

23 years ago[PATCH] for i386 SETUP CODE
Keith Mannthey [Thu, 15 Aug 2002 04:31:37 +0000 (21:31 -0700)]
[PATCH] for i386 SETUP CODE

   The following is a simple fix for an array overrun problem in
mpparse.c.  I am working on a multiquad box which has a EISA bus in it
for it's service processor.  It's local bus number is 18 which is > 3
(see quad_local_to_mp_bus_id.  When the NR_CPUS is close the the real
number of cpus adding the EISA bus #18 in the array stomps all over
various things in memory.  The EISA bus does not need to be mapped
anywhere in the kernel for anything.  This patch will not affect non
clustered apic (multiquad) kernels.

23 years ago[PATCH] Clean up the RPC socket slot allocation code [2/2]
Trond Myklebust [Thu, 15 Aug 2002 04:29:56 +0000 (21:29 -0700)]
[PATCH] Clean up the RPC socket slot allocation code [2/2]

Patch by Chuck Lever. Remove the timeout logic from call_reserve.
This improves the overall RPC call ordering, and ensures that soft
tasks don't time out and give up before they have attempted to send
their message down the socket.