1. 16 Sep, 2002 19 commits
    • James Simmons's avatar
      Merge bk://linus.bkbits.net/linux-2.5 · c598bcd0
      James Simmons authored
      into maxwell.earthlink.net:/usr/src/linus-2.5
      c598bcd0
    • Pam Delaney's avatar
      [PATCH] Fusion-MPT driver update · 05862384
      Pam Delaney authored
      This updates the Fusion-MPT driver to the latest stable version.
      Changes affect the driver source only.
      
      Major Changes:
      Reworked the calls save_flags, cli, restore_flags to 2.5 format.
      Modified DV  invocation and to handle illegal bus configuration
      Negotiation settings honor NVRAM
      
      Bug Fix: Pushing F/W onto part during driver unload.
      Bug Fix: Force F/W reset for 1030 on driver load.
      Bug Fix: F/W download algorithm.
      Bug Fix: Found a memory leak in mptctl.c
      Bug Fix: Forcing data direction for reads and writes (sg issue)
      Bug Fix: Wrong mask in Inquiry data ANSI version
      
      Minor Changes:
      Modified the debug and logging statements of the driver
      Upgraded the MPI include files (lsi/)
      05862384
    • Ingo Molnar's avatar
      [PATCH] thread-exec-fix-2.5.35-A5, BK-curr · 25f0da24
      Ingo Molnar authored
      This fixes a number of sys_execve() problems:
      
       - ptrace of thread groups over exec works again.
      
       - if the exec() is done in a non-leader thread then we must inherit the
         parent links properly - otherwise the shell will see an early
         child-exit notification.
      
       - if the exec()-ing thread is detached then make it use SIGCHLD like the
         leader thread.
      
       - wait for the leader thread to become TASK_ZOMBIE properly -
         wait_task_inactive() alone was not enough. This should be a rare
         codepath.
      
      now sys_execve() from thread groups works as expected in every combination
      i could test: standalone, from the leader thread, from one of the child
      threads, ptraced, non-ptraced, SMP and UP.
      25f0da24
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/dwmw2/BK/rbtree-2.5 · 3568bea5
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      3568bea5
    • Ben Collins's avatar
      [PATCH] IEEE-1394 updates · 959a9729
      Ben Collins authored
      Syncronizes with our SVN repo. Merged in all changes from your tree.
      959a9729
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/hch/BK/xfs/linux-2.5 · c9c13c7b
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      c9c13c7b
    • Jens Axboe's avatar
      [PATCH] ide irq problem · 13c7e0d4
      Jens Axboe authored
      Attribution goes to Petr Vandrovec for finding and solving this one. You
      probably read the mail you were cc'ed on, so I'll just mention that this
      patch makes sure that the irq disabling and enabling is perfectly
      balanced in the probing path. I've also looked at the multiple irq chain
      problem you mentioned, and as far as I can see we are never touching the
      2nd chain from within the first one. So should be ok.
      
      I'm also including the unexpected interrupt prinkt removal.
      13c7e0d4
    • Jens Axboe's avatar
      [PATCH] fix elevator_linus accounting · 88c42974
      Jens Axboe authored
      elevator_linus is seriously broken wrt accounting. Marcelo recently took
      the patch to fix it in 2.4.20-pre, here's the 2.5 equiv.
      
      Right now, we account merges as costly and seeks as not. Only thing that
      prevents seek starvation is the aging scan. That is broken, very much
      so. This patch fixes that to account merges and inserts differently. A
      seek is ELV_LINUS_SEEK_COST more costly than a merge, currently that
      define is at '16'. Doing the math on a disk, this sort of makes sense.
      
      Defaults are read latency of 1024, which means 1024 merges or 64 seeks.
      Writes are double that.
      88c42974
    • Jens Axboe's avatar
      [PATCH] limit size of bio_vec pools · 33ddb687
      Jens Axboe authored
      We are currently wasting ~2MiB on the bio pools. This is ok on systems
      with plenty of ram, but it's too much for a 16mb system for instance.
      
      This patch scales the bio_vec mempool sizes a bit. The logic is mainly:
      
      +       megabytes = nr_free_pages() >> (20 - PAGE_SHIFT);
      +       if (megabytes <= 16)
      +               scale = 0;
      +       else if (megabytes <= 32)
      +               scale = 1;
      +       else if (megabytes <= 64)
      +               scale = 2;
      +       else if (megabytes <= 96)
      +               scale = 3;
      +       else if (megabytes <= 128)
      +               scale = 4;
      
      and then for mempool setup:
      
      +               if (i >= scale)
      +                       pool_entries >>= 1;
      +
      +               bp->pool = mempool_create(pool_entries, slab_pool_alloc,
                                              slab_pool_free, bp->slab);
      
      So we allocate less and less entries for the bigger sized pools. It
      doesn't make too much sense to fill the memory with sg tables for 256
      page entries on a 16mb system.
      
      In addition, we select a starting nr_pool_entries point, based on amount
      of ram as well:
      
      +       pool_entries = megabytes * 2;
      +       if (pool_entries > 256)
      +               pool_entries = 256;
      
      The end-result is that on a 128mb system, it looks like:
      
      BIO: pool of 256 setup, 14Kb (56 bytes/bio)
      biovec pool[0]:   1 bvecs: 244 entries (12 bytes)
      biovec pool[1]:   4 bvecs: 244 entries (48 bytes)
      biovec pool[2]:  16 bvecs: 244 entries (192 bytes)
      biovec pool[3]:  64 bvecs: 244 entries (768 bytes)
      biovec pool[4]: 128 bvecs: 122 entries (1536 bytes)
      biovec pool[5]: 256 bvecs:  61 entries (3072 bytes)
      
      ie a total of ~620KiB used. Booting with mem=32m gives us:
      
      BIO: pool of 256 setup, 14Kb (56 bytes/bio)
      biovec pool[0]:   1 bvecs:  56 entries (12 bytes)
      biovec pool[1]:   4 bvecs:  28 entries (48 bytes)
      biovec pool[2]:  16 bvecs:  14 entries (192 bytes)
      biovec pool[3]:  64 bvecs:   7 entries (768 bytes)
      biovec pool[4]: 128 bvecs:   3 entries (1536 bytes)
      biovec pool[5]: 256 bvecs:   1 entries (3072 bytes)
      
      ie a total of ~31KiB. Booting with 512mb makes it:
      
      BIO: pool of 256 setup, 14Kb (56 bytes/bio)
      biovec pool[0]:   1 bvecs: 256 entries (12 bytes)
      biovec pool[1]:   4 bvecs: 256 entries (48 bytes)
      biovec pool[2]:  16 bvecs: 256 entries (192 bytes)
      biovec pool[3]:  64 bvecs: 256 entries (768 bytes)
      biovec pool[4]: 128 bvecs: 256 entries (1536 bytes)
      biovec pool[5]: 256 bvecs: 256 entries (3072 bytes)
      
      which is the same as before. The cut-off point is somewhere a bit over
      256mb. Andrew suggested we may want to 'cheat' a bit here, and leave the
      busy pools alone. We know that mpage is going to be heavy on the 16
      entry pool, so it migh make sense to make such a pool and not scale
      that. We can deal with that later, though.
      33ddb687
    • Jens Axboe's avatar
      ide.h needs to include pci.h · e80bc959
      Jens Axboe authored
      e80bc959
    • Jens Axboe's avatar
      04968341
    • Jens Axboe's avatar
    • Jens Axboe's avatar
      Update promise drivers to new ide pci init scheme, remove now unused · c8b74f4b
      Jens Axboe authored
      old pdc202xx.c
      c8b74f4b
    • Jens Axboe's avatar
      New IDE pci low level driver setup scheme · aa509d0d
      Jens Axboe authored
      aa509d0d
    • Jens Axboe's avatar
      Missing module_init() · a40bed1d
      Jens Axboe authored
      a40bed1d
    • Jens Axboe's avatar
      Move pio setup and blacklists to ide-lib · 84fb4308
      Jens Axboe authored
      84fb4308
    • Jens Axboe's avatar
      Missing exports · 7526c9af
      Jens Axboe authored
      7526c9af
    • Jens Axboe's avatar
      Make sure ide init happens in the right order · 65fce515
      Jens Axboe authored
      65fce515
    • Jens Axboe's avatar
      Cleanup Config.in, and remove unused options · 409d51dc
      Jens Axboe authored
      409d51dc
  2. 15 Sep, 2002 16 commits
    • Christoph Hellwig's avatar
      Merge hera.kernel.org:/home/torvalds/BK/linux-2.5 · f67dd842
      Christoph Hellwig authored
      into hera.kernel.org:/home/hch/BK/xfs/linux-2.5
      f67dd842
    • Christoph Hellwig's avatar
      Merge · b53ff5b4
      Christoph Hellwig authored
      b53ff5b4
    • David Gibson's avatar
      [PATCH] Remove CONFIG_SMP around wait_task_inactive() · 6865038a
      David Gibson authored
      Linus, please apply.  This defines wait_task_inactive() to be a no-op
      on UP machines, and removes the #ifdef CONFIG_SMP which surrounds
      current calls.
      
      This also fixes compile on UP which was broken by the addition of a
      call to wait_task_inactive in fs/exec.c which was not protected by an
      #ifdef.
      6865038a
    • Andrew Morton's avatar
      [PATCH] various small cleanups · 16b38746
      Andrew Morton authored
      - Remove defunct active_list/inactive_list declarations (wli)
      
      - Update an obsolete comment (wli)
      
      - "mm/slab.c contains one leftover from the initial version with
        'unsigned short' bufctl entries.  The attached patch replaces '2'
        with the correct sizeof [which is now 4]" - Manfred Spraul
      
      - BUG checks for vfree/vunmap being called in interrupt context
        (because they take irq-unsafe spinlocks, I guess?) - davej
      
      - Simplify some coding in one_highpage_init() (Christoph Hellwig).
      16b38746
    • Andrew Morton's avatar
      [PATCH] add dump_stack(): cross-arch backtrace · 5868caf6
      Andrew Morton authored
      From Christoph Hellwig, also present in 2.4.
      
      Create an arch-independent `dump_stack()' function.  So we don't need to do
      
      #ifdef CONFIG_X86
      	show_stack(0);		/* No prototype in scope! */
      #endif
      
      any more.
      
      The whole dump_stack() implementation is delegated to the architecture.
      If it doesn't provide one, there is a default do-nothing library
      function.
      5868caf6
    • Andrew Morton's avatar
      [PATCH] clean up the TLB takedown code, remove debug · 5045fffe
      Andrew Morton authored
      - Remove the temp /proc/meminfo stats
      
      - Make the mmu_gather_t be 2048 bytes again
      
      - Removed unused variable (Oleg Nesterov)
      5045fffe
    • Andrew Morton's avatar
      [PATCH] fix a bogus OOM condition for __GFP_NOFS allocations · 483a40e4
      Andrew Morton authored
      If a GFP_NOFS allocation is made when the ZONE_NORMAL inactive list is
      full of dirty or under-writeback pages, there is nothing the caller can
      do to force some page reclaim.  The caller ends up getting oom-killed.
      
      - In mempool_alloc(), don't try to perform page reclaim again.  Just
        go to sleep and wait for some elements to be returned to the pool.
      
      - In try_to_free_pages(): perform a single, short scan of the LRU and
        if that doesn't work, fail the allocation.  GFP_NOFS allocators know
        how to handle that.
      483a40e4
    • Andrew Morton's avatar
      [PATCH] hold the page ref across ->readpage · f3b3dc81
      Andrew Morton authored
      read_pages() is dropping the page refcount before running ->readpage().
      Which just happens to work, because the page is in pagecache and
      locked.
      
      But it breaks under some unconventional things which reiser4 is doing,
      and it's better/safer/saner this way anyway.
      f3b3dc81
    • Andrew Morton's avatar
      [PATCH] ext3 ceanup: use EXT3_SB · db748675
      Andrew Morton authored
      Patch from Jani Monoses <jani@iv.ro>
      
      "This turns the remaining parts of ext3 to EXT3_SB and turns the
       latter from a macro to inline function which returns the generic_sbp
       field of u.
      
       linux/fs.h is not touched by this patch though.
      
       Intermezzo's three uses of ext3_sb are also not changed."
      db748675
    • Andrew Morton's avatar
      [PATCH] add /proc/meminfo:Mapped · 73960360
      Andrew Morton authored
      The patch adds a "Mapped" field to /proc/meminfo - tha amount of memory
      which is mapped into pagetables.
      
      This is a useful statistic to monitor when testing and observing the
      vitual memory system.
      73960360
    • Andrew Morton's avatar
      [PATCH] fix reverse map accounting leak · 05d9bac3
      Andrew Morton authored
      From Hugh Dickins.  Fix a leak in the /proc/meminfo:ReverseMaps
      accounting.
      05d9bac3
    • Andrew Morton's avatar
      [PATCH] hugetlb pages · c9d3808f
      Andrew Morton authored
      Rohit Seth's ia32 huge tlb pages patch.
      
      Anton Blanchard took a look at this today; he seemed happy
      with it and said he could borrow bits.
      c9d3808f
    • Andrew Morton's avatar
      [PATCH] resurrect /proc/meminfo:Buffers · fca174cc
      Andrew Morton authored
      The /proc/meminfo:Buffers statistic is quite useful - it tells us
      how effective we are being at caching filesystem metadata.
      
      For example, increases in this figure are a measure of success of the
      slablru and buffer_head-limitation patches.
      
      The patch resurrects buffermem accounting.  The metric is calculated
      on-demand, via a walk of the blockdev hashtable.
      fca174cc
    • Andrew Morton's avatar
      [PATCH] low-latency zap_page_range · e572ef2e
      Andrew Morton authored
      zap_page_range and truncate are the two main latency problems
      in the VM/VFS.  The radix-tree-based truncate grinds that into
      the dust, but no algorithmic fixes for pagetable takedown have
      presented themselves...
      
      Patch from Robert Love.
      
      Attached patch implements a low latency version of "zap_page_range()".
      
      Calls with even moderately large page ranges result in very long lock
      held times and consequently very long periods of non-preemptibility.
      This function is in my list of the top 3 worst offenders.  It is gross.
      
      This new version reimplements zap_page_range() as a loop over
      ZAP_BLOCK_SIZE chunks.  After each iteration, if a reschedule is
      pending, we drop page_table_lock and automagically preempt.  Note we can
      not blindly drop the locks and reschedule (e.g. for the non-preempt
      case) since there is a possibility to enter this codepath holding other
      locks.
      
      ... I am sure you are familar with all this, its the same deal as your
      low-latency work.  This patch implements the "cond_resched_lock()" as we
      discussed sometime back.  I think this solution should be acceptable to
      you and Linus.
      
      There are other misc. cleanups, too.
      
      This new zap_page_range() yields latency too-low-to-benchmark: <<1ms.
      e572ef2e
    • Linus Torvalds's avatar
      Linux v2.5.35 · 697f3abe
      Linus Torvalds authored
      697f3abe
    • Linus Torvalds's avatar
      Merge bk://ppc.bkbits.net/for-linus-ppc · 11a5dbb4
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      11a5dbb4
  3. 16 Sep, 2002 5 commits