1. 15 Mar, 2004 40 commits
    • Andrew Morton's avatar
      [PATCH] Add hypervisor busy return codes · 927078c6
      Andrew Morton authored
      From: Dave Boutcher <boutcher@us.ibm.com>
      
      Add hypervisor busy return codes
      927078c6
    • Andrew Morton's avatar
      [PATCH] Make dma API handle PCI and VIO · 13bb3995
      Andrew Morton authored
      From: Stephen Rothwell <sfr@canb.auug.org.au>
      
      Make dma API handle PCI and VIO
      13bb3995
    • Andrew Morton's avatar
      [PATCH] Remove some unused ppc64 variables · 5c803b43
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Remove some unused ppc64 variables
      5c803b43
    • Andrew Morton's avatar
      [PATCH] Remove bogus sys_oldumount sign extension code · be523044
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Remove bogus sys_oldumount sign extension code. We were sign extending
      the flags argument which doesnt make sense.
      be523044
    • Andrew Morton's avatar
      [PATCH] Reduce stack overflow check to 4096 bytes · 63477af1
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Reduce stack overflow check to 4096 bytes free, we were tripping it
      too much at 8192.
      63477af1
    • Andrew Morton's avatar
      [PATCH] iostats averaging fix · 14c781b8
      Andrew Morton authored
      From: Rick Lindsley <ricklind@us.ibm.com>
      
      Fix bug #2230.
      
      I've corresponded with the submitter and he did find a real bug -- when we
      were merging I/O requests we didn't always take the oldest request start
      time, which would cause a couple of the calculations like wait time and
      average queue size to be too small.  He found it mathematically but having
      done so, I think logic and inspection makes it easy to verify.
      14c781b8
    • Andrew Morton's avatar
      [PATCH] blk: statically initialise the congestion waitqueue_heads · 01003a6e
      Andrew Morton authored
      On a really small memory machine (or one with a monstrous kernel memory leak)
      we can end up calling blk_congestion_wait() before the waitqueue_heads are set
      up.
      01003a6e
    • Andrew Morton's avatar
      [PATCH] kill INIT_THREAD_SIZE · aae898de
      Andrew Morton authored
      From: Matt Mackall <mpm@selenic.com>
      
      This piece of the THREAD_SIZE cleanup got dropped.  If you make THREAD_SIZE
      > 8k, the init thread overlaps the .init section and gets smashed.  I've
      gone ahead and killed INIT_THREAD_SIZE throughout as it wasn't doing much.
      This also saves 4k when we use 4k stacks.  Please apply.  Couple more minor
      pieces remaining.
      aae898de
    • Andrew Morton's avatar
      [PATCH] kthreads hold files open · cd74e1dc
      Andrew Morton authored
      keventd and friends are currently holding /dev/console open three times.
      It's all inherited from init.
      
      Steal the relevant parts of daemonize() to fix that up.
      cd74e1dc
    • Andrew Morton's avatar
      [PATCH] slab: fix display of object length in corruption detector · dac10907
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      print_objinfo() dumps the first few characters of an interesting object for
      debugging.  It used the wrong object len (including debug padding, instead
      of just the data area), which could cause an oops if DEBUG_PAGEALLOC is
      enabled.
      dac10907
    • Andrew Morton's avatar
      [PATCH] document unchecked do_munmaps in ipc/shm.c · 5c5fbdbe
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      There are a few unchecked do_munmap()s in the shm code.  Manfred's comment
      explains why they are OK.
      5c5fbdbe
    • Andrew Morton's avatar
      [PATCH] do_write_mem() return value check · 055a54db
      Andrew Morton authored
      From: BlaisorBlade <blaisorblade_spam@yahoo.it>, and me
      
      - remove unused `file *' arg from do_write_mem()
      
      - Add checking for copy_from_user() failures in do_write_mem()
      
      - Return correct value from kmem writes() when a fault is encountered.  A
        write()-style syscall's return values are:
      
         0 when nothing was written and there was no error (someone tried to
         write zero bytes)
      
         >0: the number of bytes copied, whether or not there was an error.
         Userspace detects errors by noting that the write() return value is less
         than was requested.
      
         <0: there was an error and no bytes were copied
      055a54db
    • Andrew Morton's avatar
      [PATCH] resierfs: AIO support · f581e4e5
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      reiserfs can safely use the generic fs aio functions.
      f581e4e5
    • Andrew Morton's avatar
      [PATCH] reiserfs: atomicity fix · 3cde9135
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      reiserfs_file_write() can use stale metadata after a schedule.
      
      Two reiserfs_file_write bugs, where items can change during a schedule.
      3cde9135
    • Andrew Morton's avatar
      [PATCH] reiserfs: fix transaction sizes · 134ab3f5
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      Make sure reiserfs uses a reasonable number when restarting long unbounded
      transactions (creating holes or deleting files).
      
      Without this patch, the number of blocks requested grows with each
      transaction restart, until it hits MAX_BATCH_COUNT and starts forcing
      commits with every new transaction.
      
      Oleg Drokin tracked this bug down
      134ab3f5
    • Andrew Morton's avatar
      [PATCH] reiserfs: search_by_key fix · df773a2c
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      Fix a bug in reiserfs search_by_key call, where it might not properly
      detect a change in tree height during a schedule.  Originally from
      vs@namesys.com
      df773a2c
    • Andrew Morton's avatar
      [PATCH] resierfs: scheduling latency improvements · 83e830d0
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      Add conditional schedules to reiserfs to help lower latencies.  Bits of
      this orginated long ago in code akpm sent me.
      83e830d0
    • Andrew Morton's avatar
      [PATCH] reiserfs: fix null pointer deref · 82106056
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      From: Jeff Mahoney <jeffm@suse.de>
      
      fsstress manages to setup a sequence of events that allow an attempt to
      perform direct-io on a tail.  bh_result->b_page == NULL, which causes the
      PageLocked and PageWriteback checks to perform a NULL deref, causing the
      oops.
      82106056
    • Andrew Morton's avatar
      [PATCH] kernel-doc build fix · d41853b1
      Andrew Morton authored
      From: Michael Still <mikal@stillhq.com>
      
      This is needed to get any of the SGML documentation to build with 2.6.4.
      d41853b1
    • Andrew Morton's avatar
      [PATCH] fbdev: character drawing enhancement. · fae3a0e9
      Andrew Morton authored
      From: James Simmons <jsimmons@infradead.org>
      
      This patch merges two of the drawing functions.  The patch uses aligned
      transfers when possible even on displays where the characters are not byte
      align.  Tested on my my laptop for 12 bit width fonts and 8 bit wide fonts.
      It works very nicely.
      fae3a0e9
    • Andrew Morton's avatar
      [PATCH] page_referenced() simplification · 54c50cc5
      Andrew Morton authored
      There's no point in calling mark_page_accessed() here.  The page is never on
      the LRU so all mark_page_accessed() will do is to set PG_referenced, which we
      immediately clear again.
      54c50cc5
    • Andrew Morton's avatar
      [PATCH] flush_workqueue(): detect excessive nesting · 2139597d
      Andrew Morton authored
      Add a debug check for workqueues nested more than three deep via the
      direct-run-workqueue() path.
      2139597d
    • Andrew Morton's avatar
      [PATCH] flush_scheduled_work() deadlock fix · b9b52730
      Andrew Morton authored
      Because keventd is a resource which is shared between unrelated parts of the
      kernel it is possible for one person's workqueue handler to accidentally call
      another person's flush_scheduled_work().  thockin managed it by calling
      mntput() from a workqueue handler.  It deadlocks.
      
      It's simple enough to fix: teach flush_scheduled_work() to go direct when it
      discovers that the calling thread is the one which should be running the
      work.
      
      Note that this can cause recursion.  The depth of that recursion is equal to
      the number of currently-queued works which themselves want to call
      flush_scheduled_work().  If this ever exceeds three I'll eat my hat.
      b9b52730
    • Andrew Morton's avatar
      [PATCH] selinux: fix compute_av bug · e6c51795
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>
      
      This patch fixes a bug in the SELinux compute_av code; the current code
      yields the right access computation but can cause unnecessary (but
      harmless) processing to occur when transition permission wasn't granted in
      the first place by the TE configuration.  Thanks to Chad Hanson of TCS for
      reporting the bug.
      e6c51795
    • Andrew Morton's avatar
      [PATCH] kbuild: fix modpost when used with O= · 4a116813
      Andrew Morton authored
      From: Sam Ravnborg <sam@ravnborg.org>
      
      modpost or to be more specific sumversion.c was not behaving correct when
      used with O= and MODULE_VERSION was used.  Previously it failed to use
      local .h when calculation the md-sum in case of a O= build.
      
      The following patch introduces the following:
      
      - A generic get_next_line()
      
      - Check that the topmost part of the directory matches
      
      - Using strrch when checking for file with suffix .o
      
      - Use NOFAIL for allocations in sumversion
      
      - Avoid memory leak in new_module
      
      The generic get_next_line will pay off when Andreas implmentation of
      storing symbol addresses in a seperate file is introduced.
      4a116813
    • Andrew Morton's avatar
      [PATCH] fix modular fb drivers · 2d86075a
      Andrew Morton authored
      From: Arnd Bergmann <arnd@arndb.de>
      
      The recent "fbdev: monitor detection fixes" patch broke modular frame
      buffer drivers.
      2d86075a
    • Andrew Morton's avatar
      [PATCH] move PCIBIOS access help text · 180ee043
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      Moves PCI BIOS Access Mode help text to its top level instead of under
      PCI_GOBIOS (which is only 1 of 4 possible choices).
      180ee043
    • Andrew Morton's avatar
      [PATCH] drivers_cdrom_cdu31c.c check_region() fix · 75fac6dd
      Andrew Morton authored
      From: <viro@parcelfarce.linux.theplanet.co.uk>
      
      check_region() fixes.
      75fac6dd
    • Andrew Morton's avatar
      [PATCH] add warning to DocBook/Makefile · 8fa38bc3
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  maximilian attems <janitor@sternwelten.at>
      
      Print something friendlier than:
      
      /bin/sh: fig2dev: command not found
      make[1]: *** [Documentation/DocBook/parport-share.eps] Error 127
      make: *** [pdfdocs] Error 2
      8fa38bc3
    • Andrew Morton's avatar
      [PATCH] Fix comment in drivers/block/genhd.c · 02a1bef0
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  a.othieno@bluewin.ch (Arthur Othieno)
      
      add_gendisk() was replaced with add_disk(), but the comment suggests
      otherwise.  Breaks `make *docs'.
      02a1bef0
    • Andrew Morton's avatar
      [PATCH] minor credits updates · 8248abaa
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  andersen@codepoet.org
      
      I've moved...  This patch updates my contact info.
      8248abaa
    • Andrew Morton's avatar
      [PATCH] chardev module aliases · d2d0b609
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From: Steve Youngs <sryoungs@bigpond.net.au> Add module aliases for 21285,
      amba, anakin, clps711x, mux, and sa1100 serial drivers.
      d2d0b609
    • Andrew Morton's avatar
      [PATCH] Fix scripts/ver_linux · 332c8c22
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Thomas Molina <tmolina@cablespeed.com>
      
      ver_linux hasn't displayed binutils version right for some time.  This patch
      corrects that and preserves the old behaviour as well, as suggested by Rusty.
      332c8c22
    • Andrew Morton's avatar
      [PATCH] fix for kallsyms module symbol resolution problem · a8b9e8d7
      Andrew Morton authored
      From:  Rusty Russell <rusty@rustcorp.com.au>
      
      Fix a problem with kallsyms being unable to look up symbols which are in
      modules.
      
      add_kallsyms should be above module_finalize, which means you can just use
      the mod->symtab and mod->strtab members.
      a8b9e8d7
    • Andrew Morton's avatar
      [PATCH] filemap.c comment fix · bffb0b0a
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Carl Spalletta <ioanamitu@yahoo.com>
      bffb0b0a
    • Andrew Morton's avatar
      [PATCH] rename one of the acpi_disable() instances · 52e01e04
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Pavel Machek <pavel@ucw.cz>
      
      There's acpi_disable somewhere in the acpi interpreter (it disables
      interrupts, iirc).  Thus blacklisting function needs better name.
      52e01e04
    • Andrew Morton's avatar
      [PATCH] drivers_cdrom_sjcd.c check_region() fix · 5164210d
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Omkhar Arasaratnam <omkhar@rogers.com>
      5164210d
    • Andrew Morton's avatar
      [PATCH] Document tricks to get S3_swsusp working · e5804aa4
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Pavel Machek <pavel@ucw.cz>
      
      I was sending this to users that had problems with swsusp, then lost it.  It
      would be nice to have it directly in the tree.
      e5804aa4
    • Andrew Morton's avatar
      [PATCH] ACPI: document acpi_sleep option · d91b55a2
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Pavel Machek <pavel@ucw.cz>
      
      acpi_sleep option should be documented.
      d91b55a2
    • Andrew Morton's avatar
      [PATCH] drivers_cdrom_cm206.c check_region() fix · 22de7638
      Andrew Morton authored
      From: Trivial Patch Monkey <trivial@rustcorp.com.au>
      
      From:  Omkhar Arasaratnam <omkhar@rogers.com>
      
      check_region() fix
      22de7638