1. 18 Jun, 2002 40 commits
    • Neil Brown's avatar
      [PATCH] Umem 1 of 2 - Fix compile warning in umem.c · af8b7bf8
      Neil Brown authored
      Cast to u64 before >>32, incase it was only u32 - thanks to Alan Cox.
      af8b7bf8
    • Neil Brown's avatar
      [PATCH] plugging initialisation · 0c12074d
      Neil Brown authored
      While this initialisation could be done in individual drivers, it is
      better to have it central...
      
      Init plug_list for make_request_fn devices: blk_queue_make_request
      should init ->plug_list just like blk_init_queue does.
      0c12074d
    • Linus Torvalds's avatar
      Merge bk://linuxusb.bkbits.net/linus-2.5 · 31c6329d
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      31c6329d
    • Linus Torvalds's avatar
      Clean up and fix fast select case · 5a56fafe
      Linus Torvalds authored
      5a56fafe
    • Greg Kroah-Hartman's avatar
    • Oliver Neukum's avatar
      [PATCH] make kaweth use the sk_buff directly on tx · cb959839
      Oliver Neukum authored
      this change set against 2.5 will make kaweth put its private header
      into the sk_buff directly if possible or else allocate a temporary sk_buff.
      It saves memory and usually a copy.
      cb959839
    • Linus Torvalds's avatar
      362dff46
    • David Brownell's avatar
      [PATCH] ohci misc fixes · 95038732
      David Brownell authored
      This patch applies on top of the other two (for init problems):
      
      - Uses time to balance interrupt load, not number of transfers.
         One 8-byte lowspeed transfer costs as much as ten same-size
         at full speed ... previous code could overcommit branches.
      - Shrinks the code a smidgeon, mostly in the submit path.
      - Updates comments, remove some magic numbers, etc.
      - Adds some debug dump routines for EDs and TDs, which can
         be rather helpful when debugging!
      - Lays ground work for a "shadow" <linux/list.h> TD queue
         (but doesn't enlarge the TD or ED on 32bit cpus)
      
      I'm not sure anyone would have run into that time/balance
      issue, though some folk have talked about hooking up lots
      of lowspeed devices and that would have made trouble.
      95038732
    • Matthew Dharm's avatar
      [PATCH] USB storage: change atomic_t to bitfield, consolidate #defines · 1c009ca6
      Matthew Dharm authored
      This patch changes from using an atomic_t with two states to using a
      bitfield to determine if a device is attached.  It also moves some common
      #defines into a common header file.
      
      courtsey of Alan Stern <stern@rowland.org>
      1c009ca6
    • Matthew Dharm's avatar
      [PATCH] USB storage: cleanup storage_probe() · 2cc2b545
      Matthew Dharm authored
      Attached is a BK patch which cleans up the usb-storage driver
      storage_probe() function.  This patch is courtsey Alan Stern.
      
      Basically, it removes some redundant checks, moves all the error-path code
      to one place (reducing code duplication), and fixes some spelling errors.
      2cc2b545
    • Linus Torvalds's avatar
      Missing include file · b073e7f2
      Linus Torvalds authored
      b073e7f2
    • Linus Torvalds's avatar
      Compiler warning - unused variable · 099932cf
      Linus Torvalds authored
      099932cf
    • Linus Torvalds's avatar
      e443df7e
    • Linus Torvalds's avatar
      Missed parts of patch from Andries. · ae3c0f7e
      Linus Torvalds authored
      Damn it, use the normal "-p1" format for patches!
      ae3c0f7e
    • Frank Davis's avatar
      [PATCH] 2.5.22 : fs/intermezzo/vfs.c · 4097aa36
      Frank Davis authored
        The following patch addresses a name change (i_zombie --> i_sem) within
      struct inode, which affects fs/intermezzo/vfs.c.
      4097aa36
    • Frank Davis's avatar
      [PATCH] 2.5.22 : include/linux/intermezzo_psdev.h · cb107a4a
      Frank Davis authored
         The following patch fixes a compile error regarding a name change
      within task_struct, which affects ISLENTO().
      cb107a4a
    • Andries E. Brouwer's avatar
      [PATCH] remove path_init · edd0987b
      Andries E. Brouwer authored
      It looks like there are no in-tree users of path_init.
      Maybe it can be removed.
      edd0987b
    • Martin Schwidefsky's avatar
      [PATCH] 2.5.22: ibm partition support. · 17a2e5b1
      Martin Schwidefsky authored
      another resend of the partition patch for ibm.c. Nobody sent a veto so far
      so please add it.
      17a2e5b1
    • Martin Schwidefsky's avatar
      [PATCH] 2.5.22: new xpram driver. · bf291a02
      Martin Schwidefsky authored
      seems someone else was faster fixing the hardsects problem in the xpram
      driver.  We continued with my new version of the xpram driver.  Arnd
      Bergmann found some bugs and added support for the driverfs.
      bf291a02
    • Martin Schwidefsky's avatar
      [PATCH] 2.5.22: elevator exports. · 144d6034
      Martin Schwidefsky authored
      The dasd driver as a module needs to call elevator_init/elavator_exit to
      change the elevator algorithm to elevator_noop.
      144d6034
    • Martin Schwidefsky's avatar
      [PATCH] 2.5.22: dasd patches. · b43e0a19
      Martin Schwidefsky authored
      1) Replace is_read_only with bdev_read_only. The last user of is_read_only
         is gone...
      2) Remove alloc & free of the label array in dasd_genhd. This is needed for
         the label array extension but this is a patch of its own.
      3) Maintain the old behaviour of /proc/dasd/devices. Its is possible again
         to use "add <devno>" instead of "add device <devno>" or "add range=<devno>".
      b43e0a19
    • Martin Schwidefsky's avatar
      [PATCH] 2.5.22: common code changes for s/390. · dcfdb40c
      Martin Schwidefsky authored
      1) Add __s390__ to the list of architectures that use unsigned int as
         type for rautofs_wqt_t. __s390__ is defined for both 31-bit and 64-bit
         linux for s/390. Both architectures are fine with unsigned int since
         sizeof(unsigned int) == sizeof(unsigned long) for 31 bit s/390.
      2) Remove early initialization call ccwcache_init(). It doesn't exists
         anymore.
      3) Remove special case for irq_stat. We moved the irq_stat structure out
         of the lowcore.
      4) Replace acquire_console_sem with down_trylock & return to avoid an
         endless trap loop if console_unblank is called from interrupt context
         and the console semaphore is taken.
      dcfdb40c
    • Andries E. Brouwer's avatar
      [PATCH] small makefile correction · dfbb3f53
      Andries E. Brouwer authored
      dfbb3f53
    • Martin Schwidefsky's avatar
      [PATCH] 2.5.22: s390 fixes. · 69fad3f9
      Martin Schwidefsky authored
      some recent changes in the s390 architectures files:
      1) Makefile fixes.
      2) Add missing include statements.
      3) Convert all parametes in the 31 bit emulation wrapper of sys_futex.
      4) Remove semicolons after 'fi' in Config.in
      5) Fix scheduler defines in system.h
      6) Simplifications in qdio.c
      69fad3f9
    • Linus Torvalds's avatar
      Merge http://linux-isdn.bkbits.net/linux-2.5.make · abffad5d
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      abffad5d
    • Andi Kleen's avatar
      [PATCH] Fix incorrect inline assembly in RAID-5 · 9dcbdb7e
      Andi Kleen authored
      Pure luck that this ever worked at all. The optimized assembly for XOR
      in RAID-5 declared did clobber registers, but did declare them as read-only.
      I'm pretty sure that at least the 4 disk and possibly the 5 disk cases
      did corrupt callee saved registers. The others probably got away because
      they were always used in own functions (and only clobbering caller saved
      registers)and only called via pointers, preventing inlining.
      
      Some of the replacements are a bit complicated because the functions
      exceed gcc's 10 asm argument limit when each input/output register needs
      two arguments. Works around that by saving/restoring some of the registers
      manually.
      
      I wasn't able to test it in real-life because I don't have a RAID
      setup and the RAID code didn't compile since several 2.5 releases.
      I wrote some test programs that did test the XOR and they showed
      no regression.
      
      Also aligns to XMM save area to 16 bytes to save a few cycles.
      9dcbdb7e
    • Jan Kara's avatar
      [PATCH] Rename of xqm.h · e00fe306
      Jan Kara authored
      This renames 'xqm.h' to a bit better (more consistent with rest of
      sources) name.
      e00fe306
    • Zwane Mwaikambo's avatar
      [PATCH] Make SMP/APIC config option earlier · ee926b71
      Zwane Mwaikambo authored
      Patch to reorder the APIC configuration so that dependencies are
      determined beforehand for MCE. Keith Owens pointed this out a whiles back
      actually.
      ee926b71
    • Adrian Bunk's avatar
      [PATCH] drivers/char/rio/func.h needs linux/kdev_t.h · 288aa740
      Adrian Bunk authored
      It seems func.h needs to inlude linux/kdev_t.h:
      288aa740
    • Jens Axboe's avatar
      [PATCH] missing tag blkdev.h stuff · 813bef20
      Jens Axboe authored
      For some odd reason, the blkdev.h changes did not get patched into your
      tree from the patch I sent?! Anyways, here's that change:
      813bef20
    • Stephen Rothwell's avatar
      [PATCH] make file leases work as they should · 23b9a9a3
      Stephen Rothwell authored
      This patch fixes the following problems in the file lease:
      	when there are multiple shared leases on a file, all the
      		lease holders get notified when someone opens the
      		file for writing (used to be only the first).
      	when a nonblocking open breaks a lease, it will time out
      		as it should (used to never time out).
      
      This should make the leases code more usable (hopefully).
      23b9a9a3
    • Stephen Rothwell's avatar
      [PATCH] Make copy_siginfo_to_user mode explicit · 9d33a271
      Stephen Rothwell authored
      This patch makes copy_siginfo_to_user excplicitly copy the correct
      union member.  Previously we were getting the correct result but
      really by accident.
      9d33a271
    • Stephen Rothwell's avatar
      [PATCH] 2.5.22 compile fixes · e784b458
      Stephen Rothwell authored
      I needed these to make 2.5.22 build for me.
      e784b458
    • Stephen Rothwell's avatar
      [PATCH] remove getname32 · 64088985
      Stephen Rothwell authored
      arch/ppc64/kernel/sys_ppc32.c has a getname32 function.  The only
      difference between it and getname() is that it calls do_getname32()
      instead of do_getname() (see fs/namei.c).  The difference between
      do_getname and do_getname32 is that the former checks to make sure that
      the pointer it is passed is less that TASK_SIZE and restricts the length
      copied to the lesser of PATH_MAX and (TASK_SIZE - pointer).
      do_getname32 uses PAGE_SIZE instead of PATH_MAX.
      
      Anton Blanchard says it is OK to remove getname32.
      
      arch/ia64/ia32/sys_ia32.c defined a getname32(), but nothing used it.
      
      This patch removes both.
      64088985
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/mingo/bk-sched · 1f60ade2
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      1f60ade2
    • Ingo Molnar's avatar
      - sync wakeup affinity fix: do not fast-migrate threads · 8509486a
      Ingo Molnar authored
        without making sure that the target CPU is allowed.
      8509486a
    • Ingo Molnar's avatar
      - comment and coding style fixes. · f042243c
      Ingo Molnar authored
      f042243c
    • Ingo Molnar's avatar
      sched_yield() is misbehaving. · 18cb13a6
      Ingo Molnar authored
        the current implementation does the following to 'give up' the CPU:
      
         - it decreases its priority by 1 until it reaches the lowest level
         - it queues the task to the end of the priority queue
      
        this scheme works fine in most cases, but if sched_yield()-active tasks
        are mixed with CPU-using processes then it's quite likely that the
        CPU-using process is in the expired array. In that case the yield()-ing
        process only requeues itself in the active array - a true context-switch
        to the expired process will only occur once the timeslice of the
        yield()-ing process has expired: in ~150 msecs. This leads to the
        yield()-ing and CPU-using process to use up rougly the same amount of
        CPU-time, which is arguably deficient.
      
        i've fixed this problem by extending sched_yield() the following way:
      
        +        * There are three levels of how a yielding task will give up
        +        * the current CPU:
        +        *
        +        *  #1 - it decreases its priority by one. This priority loss is
        +        *       temporary, it's recovered once the current timeslice
        +        *       expires.
        +        *
        +        *  #2 - once it has reached the lowest priority level,
        +        *       it will give up timeslices one by one. (We do not
        +        *       want to give them up all at once, it's gradual,
        +        *       to protect the casual yield()er.)
        +        *
        +        *  #3 - once all timeslices are gone we put the process into
        +        *       the expired array.
        +        *
        +        *  (special rule: RT tasks do not lose any priority, they just
        +        *  roundrobin on their current priority level.)
        +        */
      18cb13a6
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/mingo/bk-misc · 3986594c
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      3986594c
    • Ingo Molnar's avatar
      - sti() preemption fix. · 5567614b
      Ingo Molnar authored
      5567614b