1. 14 Apr, 2003 15 commits
    • Martin Schwidefsky's avatar
      [PATCH] s390: uni-processor builds. · db165cde
      Martin Schwidefsky authored
      Fixes for s390 kernel configured with CONFIG_SMP=n.
      db165cde
    • Martin Schwidefsky's avatar
      [PATCH] s390: console changes. · a863aaa3
      Martin Schwidefsky authored
      s390 console fixes for 3215 and sclp.
      a863aaa3
    • Martin Schwidefsky's avatar
      [PATCH] s390: common i/o layer update. · fefe4ef5
      Martin Schwidefsky authored
      Common i/o layer fixes:
       - Fix for path no operational condition in cio_start.
       - Fix handling of user interruption parameter.
       - Add code to wait for devices in init_ccw_bus_type.
       - Move qdio states out of main cio state machine.
       - Reworked chsc data structures.
       - Add ccw_device_start_timeout.
       - Handle path verification required flag.
      fefe4ef5
    • Martin Schwidefsky's avatar
      [PATCH] s390: syscall numbers > 255. · 71e25a79
      Martin Schwidefsky authored
      Add support for system calls with numbers > 255.
      71e25a79
    • Martin Schwidefsky's avatar
      [PATCH] s390: base s390 fixes. · 2e1e5016
      Martin Schwidefsky authored
      s390 fixes:
       - Initialize timing related variables first and then enable the timer interrupt.
       - Normalize nano seconds to micro seconds in do_gettimeofday.
       - Add types for __kernel_timer_t and __kernel_clockid_t.
       - Fix ugly bug in switch_to: set prev to the return value of resume, otherwise
         prev still contains the previous process at the time resume was called and
         not the previous process at the time resume returned. They differ...
       - Add missing include to get the kernel compiled.
       - Get a closer match with the i386 termios.h file.
       - Cope with INITIAL_JIFFIES.
       - Define cpu_relax to do a cpu yield on VM and LPAR.
       - Don't reenable interrupts in program check handler.
       - Add pte_file definitions.
       - Fix PT_IEEE_IP special case in ptrace.
       - Use compare and swap to release the lock in _raw_spin_unlock.
       - Introduce invoke_softirq to switch to async. interrupt stack.
      2e1e5016
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk · c3cc27c9
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      c3cc27c9
    • Russell King's avatar
      [PATCH] flush_cache_mm in zap_page_range · e0aceaae
      Russell King authored
      unmap_vmas() eventually calls tlb_start_vma(), where most architectures
      flush caches as necessary.  The flush here seems to make the
      flush_cache_range() in zap_page_range() redundant, and therefore can be
      removed.
      e0aceaae
    • Linus Torvalds's avatar
      Merge http://fbdev.bkbits.net/fbdev-2.5 · 9a72322d
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      9a72322d
    • Kai Mäkisara's avatar
      [PATCH] SCSI tape sysfs and module parameter additions · cb22f9fc
      Kai Mäkisara authored
      This contains the following changes:
       - export some driver parameters in sysfs
       - use new module parameter definitions
      cb22f9fc
    • Kai Mäkisara's avatar
      [PATCH] SCSI tape EOT write fixes · 6b38193b
      Kai Mäkisara authored
      This contains the following changes:
       - EOT detection fixed when writing in fixed block mode
       - asynchronous writes in fixed block mode and write threshold removed
         to enable the EOT fixes (the parameter accepted for compatibility)
      6b38193b
    • Kai Mäkisara's avatar
      [PATCH] SCSI tape ILI and timeout fixes · 69ca9ecd
      Kai Mäkisara authored
      This contains the following changes:
       - ILI fixed to work with really old drives
       - message printed in case block larger than read()
       - long timeout used when creating a tape partition
      69ca9ecd
    • Mikael Pettersson's avatar
      [PATCH] lapic_nmi_watchdog resume fix · d8ff1505
      Mikael Pettersson authored
      I managed to add a bug to the local APIC NMI watchdog's
      resume procedure in the driver model conversion for 2.5.67.
      The problem is that the resume procedure simply calls the
      enable procedure. If the NMI watchdog has been disabled by
      another driver (like oprofile or perfctr), then the NMI
      watchdog will incorrectly be re-enabled.
      
      I discovered this when updating the perfctr driver for 2.5.67
      and seeing unexpected NMIs after a resume from apm --suspend.
      
      We can fix this by unregistering the NMI watchdog from the
      driver model when disabling it (like the code did before the
      driver model changes), or by remembering the previous state
      at suspend and checking it at resume. The patch below uses
      the second, simpler, approach. Tested, please apply.
      d8ff1505
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/sparc-2.5 · ffc06ab0
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      ffc06ab0
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/net-2.5 · 612e744c
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      612e744c
    • James Bottomley's avatar
      fix scsi queue plugging behaviour · c2afc04e
      James Bottomley authored
      Following recent changes removing blk_queue_empty(), we were
      incorrectly plugging the queue some times (most often as part of
      the SCSI scan process).  This was causing a non-deterministic panic
      in the scan code because a destroyed queue was sometimes being
      unplugged and run.
      c2afc04e
  2. 13 Apr, 2003 15 commits
  3. 12 Apr, 2003 10 commits
    • James Simmons's avatar
      Merge kozmo.(none):/usr/src/linus-2.5 · 81ff732e
      James Simmons authored
      into kozmo.(none):/usr/src/fbdev-2.5
      81ff732e
    • Neil Brown's avatar
      [PATCH] md: Fix raid1 oops · 7b87c44e
      Neil Brown authored
      From: Angus Sawyer <angus.sawyer@dsl.pipex.com>
      
      When the last device in a raid1 array is failed (or missing) the r1bio
      structure can be released (especially on very fast devices) before
      make_request has finished using it.
      
      This patch gets and puts an extra reference to the r1_bio around the
      submission loop, and uses the status in r1_bio to maintain the request status
      if the last refernce is held by make_request.
      
      This is also more correct for write requests, as a write should succeed
      if any write succeeded, not only if the last write succceeded.
      7b87c44e
    • Neil Brown's avatar
      [PATCH] kNFSd: First step to adding state management to NFSv4 server · ef242262
      Neil Brown authored
      A new file "nfs4state.c", and nfs4_setclientid{,_confirm} are moved there,
      with lots of code.
      ef242262
    • Neil Brown's avatar
      [PATCH] kNFSd: NFSD binary compatibility breakage · 88d416db
      Neil Brown authored
      The removal of "struct nfsctl_uidmap" from "nfsctl_fdparm" broke
      binary compatiblity on 64-bit platforms (strictly speaking: on all
      platforms with alignof(void *) > alignof(int)).  The problem is that
      nfsctl_uidmap contained a "char *", which forced the alignment of the
      entire union to be 64 bits.  With the removal of the uidmap, the
      required alignment drops to 32 bits.  Since the first member is only
      32 bits in size, this breaks compatibility with user-space.  Patch
      below fixes the problem.
      88d416db
    • Neil Brown's avatar
      [PATCH] kNFSd: Return correct result for ACCESS(READ) on eXecute-only file. · 4fe13364
      Neil Brown authored
      Currently, an NFSv3 ACCESS check for READ permission on an
      eXecute-only file will succeed where it should fail.
      
      This is because nfsd_permission allows READ access to eXecute only
      files so that mode 711 executables can be loaded and run, and
      nfsd_access simply uses nfsd_permission.
      
      This patch changes nfsd_permission to only map eXecute permission to
      read permission of MAY_OWNER_OVERRIDE was set.  This is only set
      when trying to read from a file, so ACCESS will no longer be tricked.
      
      This change will only affect callers of nfsd_permission that specify
      MAY_READ and not MAY_OWNER_OVERRIDE, and nfsd_access is the only
      routine that calls nfsd_permission (via fh_verify) that way.
      4fe13364
    • Neil Brown's avatar
      [PATCH] kNFSd: nfsd/export.c tidyup and add missing exp_put · 3a280533
      Neil Brown authored
      There was a missing exp_put in export.c so that after a client
      mounts an exported filesystem, the server would never be able to
      unmount, even after trying to unexport.  This is fixed by the last
      chunk of this patch.
      
      Also assorted cleanups to the code found while hunting.
      3a280533
    • Andrew Morton's avatar
      [PATCH] Put all functions in kallsyms · 4b4bd81a
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      Introduce _sinittext and _einittext (cf. _stext and _etext), so kallsyms
      includes __init functions.
      
      TODO: Use huffman name compression and 16-bit offsets (see IDE
      oopser patch)
      4b4bd81a
    • Andrew Morton's avatar
      [PATCH] use spinlocking in the ext2 inode allocator · 77a9874a
      Andrew Morton authored
      From Alex Tomas and myself
      
      It is identical in concept to the block allocator change.  It uses the same
      hashed spinlock.
      77a9874a
    • Andrew Morton's avatar
      [PATCH] use spinlocking in the ext2 block allocator · c14c1a44
      Andrew Morton authored
      From Alex Tomas and myself
      
      ext2 currently uses lock_super() to protect the filesystem's in-core block
      allocation bitmaps.
      
      On big SMP machines the contention on that semaphore is causing high context
      switch rates, large amounts of idle time and reduced throughput.
      
      The context switch rate can also worsen block allocation: if several tasks
      are trying to allocate blocks inside the same blockgroup for different files,
      madly rotating between those tasks will cause the files' blocks to be
      intermingled.
      
      On SDET and dbench-style worloads (lots of tasks doing lots of allocation)
      this patch (and a similar one for the inode allocator) improve throughout on
      an 8-way by ~15%.  On 16-way NUMAQ the speedup is 150%.
      
      What wedo isto remove the lock altogether and just rely on the atomic
      semantics of test_and_set_bit(): if the allocator sees a block was free it
      runs test_and_set_bit().  If that fails, then we raced and the allocator will
      go and look for another block.
      
      Of course, we don't really use test_and_set_bit() because that
      isn'tendian-dependent.  New atomic endian-independent functions are
      introduced: ext2_set_bit_atomic() and ext2_clear_bit_atomic().  We do not
      need ext2_test_bit_atomic(), since even if ext2_test_bit() returns the wrong
      result, that error will be detected and naturally handled in the subsequent
      ext2_set_bit_atomic().
      
      For little-endian machines the new atomic ops map directly onto the
      test_and_set_bit(), etc.
      
      For big-endian machines we provide the architecture's impementation with the
      address of a spinlock whcih can be taken around the nonatomic ext2_set_bit().
       The spinlocks are hashed, and the hash is scaled according to the machine
      size.  Architectures are free to implement optimised versions of
      ext2_set_bit_atomic() and ext2_clear_bit_atomic().
      c14c1a44
    • Andrew Morton's avatar
      [PATCH] blockgroup_lock: hashed spinlocks for ext2 and ext3 · c9db333a
      Andrew Morton authored
      ext2 and ext3 per-blockgroup metadata needs locking.  An fs-wide lock is
      expensive, and a per-blockgroup lock consumes too much storage (up to 32768
      blockgroups per filesystem).  We need something in-between.
      
      blockgroup_locks are very simple hashed spinlocks which provide this
      compromise.  The size of the lock is scaled by NR_CPUS to implement an
      additional speed/space tradeoff.
      
      These locks are actually fairly generic.  However I presented it as something
      which is specific to ext2 and ext3 so that people wouldn't go using them all
      over the place.  They consume a lot of storage.
      c9db333a