1. 09 Apr, 2003 5 commits
  2. 10 Apr, 2003 9 commits
  3. 09 Apr, 2003 26 commits
    • Linus Torvalds's avatar
      Fix kernel/posix-timers.c: · c8690d4e
      Linus Torvalds authored
       - bad preprocessor test always tested true, even when it shouldn't.
       - annotate user pointers with proper annotations.
      
      Both found by my automatic type checker tool.
      c8690d4e
    • Linus Torvalds's avatar
      Fix bad prototypes in kernel/softirq.c · 63de80af
      Linus Torvalds authored
      63de80af
    • Linus Torvalds's avatar
      30d14944
    • Linus Torvalds's avatar
      0f95ec58
    • Linus Torvalds's avatar
      9fde1f47
    • Linus Torvalds's avatar
      2f14cd23
    • Linus Torvalds's avatar
      b9a8a0bd
    • Hideaki Yoshifuji's avatar
      c92eb773
    • Stephen Hemminger's avatar
      3add94a5
    • Linus Torvalds's avatar
      Merge http://lia64.bkbits.net/to-linus-2.5 · 75b08514
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      75b08514
    • David Mosberger's avatar
      ia64: Initial sync with 2.5.67. · 358e377e
      David Mosberger authored
      358e377e
    • Linus Torvalds's avatar
      Tag more user-supplied path strings as being user pointers for · b1d7a6ca
      Linus Torvalds authored
      type evaluation.  This tags the system call interfaces in
      fs/open.c, fs/dcache.c and mm/swapfile.c - and tags the path
      walking helper functions.
      b1d7a6ca
    • Andrew Morton's avatar
      [PATCH] fix file leak in fadvise() · 7c32f3a2
      Andrew Morton authored
      It can miss an fput() if passed the fd of a file which has no ->mapping.
      7c32f3a2
    • Andrew Morton's avatar
      [PATCH] 3c59x EISA tidyup · ecd0bd4a
      Andrew Morton authored
      From: Marc Zyngier <mzyngier@freesurf.fr>
      
      The included patch helps 3c59x to display the correct identification
      string (3c592 and 3c597 were displayed as 3c590). It also gets rid of
      the EISA_bus reference, which is not needed anymore since the driver
      has been ported to the EISA probing API.
      ecd0bd4a
    • Andrew Morton's avatar
      [PATCH] task_lock commentary fixes · 52a4a8b7
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      Update and clarify the incorrect commentary around task_lock()
      52a4a8b7
    • Andrew Morton's avatar
      [PATCH] struct address_space comments · 598ee771
      Andrew Morton authored
      From: "Martin J. Bligh" <mbligh@aracnet.com>
      
      Fix the commentary around the address_space fields.
      598ee771
    • Andrew Morton's avatar
      [PATCH] Make msync(MS_ASYNC) no longer start the I/O · a300bad2
      Andrew Morton authored
      MS_ASYNC will currently wait on previously-submitted I/O, then start new I/O
      and not wait on it.  This can cause undesirable blocking if msync is called
      rapidly against the same memory.
      
      So instead, change msync(MS_ASYNC) to not start any IO at all.  Just flush
      the pte dirty bits into the pageframe and leave it at that.
      
      The IO _will_ happen within a kupdate period.  And the application can use
      fsync() or fadvise(FADV_DONTNEED) if it actually wants to schedule the IO
      immediately.
      
      (This has triggered an ext3 bug - the page's buffers get dirtied so fast
      that kjournald keeps writing the buffers over and over for 10-20 seconds
      before deciding to give up for some reason)
      a300bad2
    • Andrew Morton's avatar
      [PATCH] Missing brelse() in ext2/ext3 extended attribute code · 72c4f88a
      Andrew Morton authored
      From: Andreas Gruenbacher <agruen@suse.de>
      
      Missing brelse() in ext2/ext3 extended attribute code
      
      The ext2 and ext3 EA implementations fail to release a buffer_head if
      the inode that is being accessed is sharing EAs with another inode, and
      an attribute is set to the same value that it has already, like so:
      
              $ touch f g
      	$ setfattr -n user.test -v test f g
      	# (Now, both f and g refer to the same EA block.)
      	$ setfattr -n user.test -v test f
      
      With the bug, an "invalidate: busy buffer" or "invalidate: dirty
      buffer" message will be logged when the file system is unmounted. This
      patch fixes the problem.
      
      At the implementation level:
      
      The code was assuming that ext3_xattr_cache_find cannot return the same
      block the inode already is associated with, so testing for (old_bh !=
      new_bh) would determine whether the old block is resued or an additional
      bh is held. This is wrong if the EA block is used by multiple inodes (in
      which case it stays in the cache), and the block isn't actually
      modified.  Instead of testing for (old_bh != new_bh), the code now does
      a get_bh() in the branch that keeps the old block, which assures that
      new_bh now is either NULL or a handle that must be released at the end
      of ext3_xattr_set_handle2().
      72c4f88a
    • Andrew Morton's avatar
      [PATCH] epoll cross-thread deletion fix · 92a88ec9
      Andrew Morton authored
      From: Davide Libenzi <davidel@xmailserver.org>
      
      
      This fixes a bug that might happen having a thread doing epoll_wait() with
      another thread doing epoll_ctl(EPOLL_CTL_DEL) and close(). The fast check
      inside eventpoll_release() is good to not effect performace of code not
      using epoll, but it requires get_file() to be called ( that can be avoided
      by dropping the fast check ). I opted to keep the fast check and to have
      epoll to call get_file() before the event send loop. I tested it on UP and
      2SMP with a bug-exploiting program provided by @pivia.com ( thx to them )
      and it looks fine. I also update the 2.4.20 epoll patch with this fix :
      92a88ec9
    • Andrew Morton's avatar
      [PATCH] Allow panics and reboots at oops time. · 7b78878b
      Andrew Morton authored
      From: Russell Miller <rmiller@duskglow.com>
      
      A BUG or an oops will often leave a machine in a useless state.  There is no
      way to remotely recover the machine from that state.
      
      The patch adds a /proc/sys/kernel/panic_on_oops sysctl which, when set, will
      cause the x86 kernel to call panic() at the end of the oops handler.  If the
      user has also set /proc/sys/kernel/panic then a reboot will occur.
      
      The implementation will try to sleep for a while before panicing so the oops
      info has a chance of hitting the logs.
      
      The implementation is designed so that other architectures can easily do this
      in their oops handlers.
      7b78878b
    • Andrew Morton's avatar
      [PATCH] task_vsize() speedup · 2040ae81
      Andrew Morton authored
      From: William Lee Irwin III <wli@holomorphy.com>
      
      task_vsize() mysteriously appeared on my profiles.  This should remove it
      from them by using the already in-use elsewhere for rlimit checks
      mm->total_vm for the benefit of O(1) cachelines touched.
      2040ae81
    • Andrew Morton's avatar
      [PATCH] JBD pasting warning fix · e1851a6c
      Andrew Morton authored
      From: "Hua Zhong" <hzhong@cisco.com>
      
      Fix a token-pasting warning from recent gcc's
      e1851a6c
    • Andrew Morton's avatar
      [PATCH] fix unuse_pmd fixme · 6f924b79
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      try_to_unuse drop mmlist_lock across unuse_process (with pretty dance
      of atomic_incs and mmputs of various mmlist markers, and a polite new
      cond_resched there), so unuse_process can pte_chain_alloc(GFP_KERNEL)
      and pass that down and down and down and down to unuse_pte: which
      cannot succeed more than once on a given mm (make that explicit by
      returning back up once succeeded).  Preliminary checks moved up from
      unuse_pte to unuse_pmd, and done more efficiently (avoid that extra
      pte_file test added recently), swapoff spends far too long in here.
      Updated locking comments and references to try_to_swap_out.
      6f924b79
    • Andrew Morton's avatar
      [PATCH] rmap comments · 9549db1d
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      Update a few locking comments in rmap.c.
      9549db1d
    • Andrew Morton's avatar
      [PATCH] Replace the radix-tree rwlock with a spinlock · 8e98702b
      Andrew Morton authored
      Spinlocks don't have a buslocked unlock and are faster.
      
      On a P4, time to write a 4M file with 4M one-byte-write()s:
      
      Before:
      	0.72s user 5.47s system 99% cpu 6.227 total
      	0.76s user 5.40s system 100% cpu 6.154 total
      	0.77s user 5.38s system 100% cpu 6.146 total
      
      After:
      	1.09s user 4.92s system 99% cpu 6.014 total
      	0.74s user 5.28s system 99% cpu 6.023 total
      	1.03s user 4.97s system 100% cpu 5.991 total
      8e98702b
    • Andrew Morton's avatar
      [PATCH] misc rmap speedups · df921d4d
      Andrew Morton authored
      Even a BUG_ON() makes a measurable difference.  So remove some gratuitous
      ones which will just trigger a null pointer deref anyway.
      
      Also remove some debug code which isn't really being maintained any more.
      
      Also replace (effectively):
      
      	test_bit(N, foo);
      	set_bit(N, foo);
      
      with
      
      	set_bit(N, foo);
      	test_bit(N, foo);
      
      In the first case we'll go onto the bus twice: once for the cache miss and
      once to get exclusive write access.  In the second case we only go on the bus
      once.  I think.  Certainly this trick chaved 40% off the cost of
      shrink_list() when I did it there...
      
      This patch is worth 1% or so on the bash script testing.
      df921d4d