1. 24 Jul, 2002 12 commits
    • Neil Brown's avatar
      [PATCH] MD - Fix two bugs that would cause sync_sbs to Oops · d1cde62a
      Neil Brown authored
      Sync_sbs tries to access the ->sb for the first rdev of an mddev.
      This can oops as the wrong arg is given to list_entry, and also
      if a define was faound to be failed, as failed devices have their ->sb
      removed.  But that removal isn't necessary, so now an rdev will always
      have an ->sb.
      d1cde62a
    • Neil Brown's avatar
      [PATCH] type safe(r) list_entry repacement: container_of · ec4f2142
      Neil Brown authored
      Define container_of which cast from member to struct with some type checking.
      
      This is much like list_entry but is cearly for things other than lists.
      
      List_entry now uses container_of.
      ec4f2142
    • Linus Torvalds's avatar
      Merge bk://jfs.bkbits.net/linux-2.5 · 6f84f62a
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      6f84f62a
    • Hugh Dickins's avatar
      [PATCH] shmem_getpage_locked missing unlock · 4a6fdb2d
      Hugh Dickins authored
      Dawson Engler's Stanford Checker reported this missing unlock to
      LKML 11 July (amongst "56 potential lock/unlock bugs in 2.5.8").
      4a6fdb2d
    • Hugh Dickins's avatar
      [PATCH] shmem_file_write double kunmap · ee9e4c9c
      Hugh Dickins authored
      Found by Simon Trimmer <simon@veritas.com>: shmem_file_write
      failure path duplicates kunmap, causing oops holding kmap_lock.
      ee9e4c9c
    • Hugh Dickins's avatar
      [PATCH] shmem_link duplicated test · 3489f24f
      Hugh Dickins authored
      Trivial: vfs_link in 2.5 checks S_ISDIR first, shmem_link
      need not repeat it, but test crept back in at some stage.
      3489f24f
    • Hugh Dickins's avatar
      [PATCH] shm_destroy lock hang · 960d4b34
      Hugh Dickins authored
      Martin Schwidefsky <schwidefsky@de.ibm.com> reported "Bug with shared
      memory" to LKML 14 May: hang due to schedule in truncate_list_pages
      called from .... shm_destroy holding shm_lock spinlock.  shm_destroy
      needs that lock for shm_rmid, but it can be safely unlocked once link
      from id to shp has been removed.
      960d4b34
    • Linus Torvalds's avatar
      7e9b34ab
    • Martin Dalecki's avatar
      [PATCH] IDE-101 · 02114f71
      Martin Dalecki authored
      Here is a quick fix.  I would like to synchronize with the irq handler
      changes as well.  Becouse right now I know that preemption is killing
      the disk subsystem when moving data between disks using different
      request queues...  In esp.  It get's me in to do_request() with a queue
      in unplugged state.  (Not everything is my fault, after all :-).
      02114f71
    • Dave Kleikamp's avatar
      Merge jfs@jfs.bkbits.net:linux-2.5 · 2b0c7536
      Dave Kleikamp authored
      into kleikamp.austin.ibm.com:/home/shaggy/bk/jfs-2.5
      2b0c7536
    • Linus Torvalds's avatar
      Remove unused variable · 10f024fd
      Linus Torvalds authored
      10f024fd
    • Ingo Molnar's avatar
      [PATCH] irqlock patch 2.5.27-H6 · a6efb709
      Ingo Molnar authored
       - init thread needs to have preempt_count of 1 until sched_init().
         (William Lee Irwin III)
       - clean up the irq-mask macros. (Linus)
       - add barrier() to irq_enter() and irq_exit(). (based on Oleg Nesterov's
         comment.)
       - move the irqs-off check into preempt_schedule() and remove
         CONFIG_DEBUG_IRQ_SCHEDULE.
       - remove spin_unlock_no_resched() and comment the affected places more
         agressively.
       - slab.c needs to spin_unlock_no_resched(), instead of spin_unlock(). (It
         also has to check for preemption in the right spot.) This should fix
         the memory corruption.
       - irq_exit() needs to run softirqs if interrupts not active - in the
         previous patch it ran them when preempt_count() was 0, which is
         incorrect.
       - spinlock macros are updated to enable preemption after enabling
         interrupts. Besides avoiding false positive warnings, this also
       - fork.c has to call scheduler_tick() with preemption disabled -
         otherwise scheduler_tick()'s spin_unlock can preempt!
       - irqs_disabled() macro introduced.
       - [ all other local_irq_enable() or sti instances conditional on
           CONFIG_DEBUG_IRQ_SCHEDULE are to fix false positive warnings. ]
       - fix buggy in_softirq(). Fortunately the bug made the test broader,
         which didnt result in algorithmical breakage, just suboptimal
         performance.
       - move do_softirq() processing into irq_exit() => this also fixes the
         softirq processing bugs present in apic.c IRQ handlers that did not
         test for softirqs after irq_exit().
       - simplify local_bh_enable().
      a6efb709
  2. 23 Jul, 2002 28 commits
    • Linus Torvalds's avatar
      Merge m68k patches · 1da3174f
      Linus Torvalds authored
      1da3174f
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 49) · adaf9410
      Geert Uytterhoeven authored
      Amiga Zorro bus updates
       - Bring APUS Zorro bus announcement in sync with the m68k version
       - Fix typo in Zorro device generator name
       - Kill duplicate ] in Zorro device ID database
       - Include <asm/io.h> instead of duplicating definitions from <asm/io.h>
      adaf9410
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 48) · c20f0856
      Geert Uytterhoeven authored
      console.wait_key was removed
      c20f0856
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 47) · 65458d5a
      Geert Uytterhoeven authored
      M68k VT updates:
        - Include <linux/vt_kern.h> instead of copying the kd_mksound() prototype
        - Lots of stuff depends on CONFIG_VT:
            o SYSRQ_KEY
            o kd_mksound()
            o mach_keyb_init()
            o mach_kbdrate()
            o mach_kbd_leds()
            o mach_kbd_translate()
            o mach_sysrq_xlate()
            o Atari keyboard and joystick drivers
        - There's no need to provide dummy routines for kbd{rate,_leds}()
        - dummy_con depends on CONFIG_DUMMY_CONSOLE
      65458d5a
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 46) · 5c98be72
      Geert Uytterhoeven authored
      MVME serial driver updates (from 2.4.x)
        - Add missing save of interrupt state
        - _tty_name() got renamed to tty_name()
        - Add devfs support
        - Simplify baud logic
        - Add missing MOD_DEC_USE_COUNT
        - Add missing cli()
        - block_til_ready() got renamed to gs_block_til_ready()
      5c98be72
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 45) · 7f22f013
      Geert Uytterhoeven authored
      MVME SCSI updates
       - Fix return type in prototype of ncr53c7xx_init()
      7f22f013
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 44) · 21e230ab
      Geert Uytterhoeven authored
      M68k fault handling updates
        - Fix incorrect page alignment
        - Merge related inline asm statements to avoid .chip confusion
        - Add Sun-3 bus mapping test code
        - Kill warning
      21e230ab
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 43) · 91b60437
      Geert Uytterhoeven authored
      M68k TLB updates
      91b60437
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 42) · 0ff21ea7
      Geert Uytterhoeven authored
      M68k task and thread updates
      0ff21ea7
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 41) · b066fff8
      Geert Uytterhoeven authored
      Add new syscalls to m68k
        - Add syscall entries for sys_pivot_root, extended attributes, and futex
        - Fix formatting
      b066fff8
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 40) · 391d815f
      Geert Uytterhoeven authored
      Sun-3/3x frame buffer device updates
        - Fix breakage from recent fbdev changes
        - Add support for CG3 graphics on Sun-3/3x
      391d815f
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 39) · fb42ac9d
      Geert Uytterhoeven authored
      Atari STRAM fixes
        - Add missing include
        - Fix parameter passing to atari_stram_reserve_pages()
      fb42ac9d
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 38) · caf7487d
      Geert Uytterhoeven authored
      Spelling fix
      caf7487d
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 37) · 22863a70
      Geert Uytterhoeven authored
      SCSI scatterlist updates for m68k
        - Fix printk() format
        - Update for page/offset in scatterlist
      22863a70
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 36) · 3b168e68
      Geert Uytterhoeven authored
      Q40/Q60 keyboard updates
        - Ignore illegal scancodes
        - Remove unused q40kbd_leds()
        - Fix return type and return value of q40kbd_init_hw()
      3b168e68
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 35) · 52922341
      Geert Uytterhoeven authored
      Remove CPU information from /proc/hardware (already in /proc/cpuinfo)
      52922341
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 34) · c87b3c20
      Geert Uytterhoeven authored
      Add PCI_DMA_BUS_IS_PHYS for m68k
      c87b3c20
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 33) · c24c2dcf
      Geert Uytterhoeven authored
      M68k parport updates
       - Remove workaround code for parport bug (parport without FIFO)
       - ->dma_buf is used in FIFO mode only
       - Add missing prototype for parport_atari_init()
       - Initialize uninitialized variable
      c24c2dcf
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 32) · f19c666a
      Geert Uytterhoeven authored
      Mac/m68k Nubus updates
        - Use nubus_{read,write}[bwl]()
        - Fix /proc/bus/nubus
        - Fix type and linkage of nubus_init()
        - Use nubus_{read,write}[bwl]()
        - Kill some address assignment warnings
        - Include <asm/nubus.h>
        - nubus_init() is an initcall, hence static
      f19c666a
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 31) · e8c65708
      Geert Uytterhoeven authored
      Add definition for PROT_SEM on m68k
      e8c65708
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 30) · 57cb5f38
      Geert Uytterhoeven authored
      M68k core mm updates
        - Update fault handling
        - Remove superfluous flush_tlb_page()
        - Remove obsolete comment
        - empty_zero_page becomes a void *
        - Type and cast clean ups
        - Remove duplicated test for voff == 0
        - Move check_pgt_cache() to pgtable.h
        - Pte and pmd updates
        - Add additional parameter to {clear,copy}_user_page()
        - pfn updates
        - BUG() updates
        - Move check_pgt_cache() from motorola_pgalloc.h
        - Misc updates
        - Add __page_address() and page_to_phys()
      57cb5f38
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 29) · 208b7d1e
      Geert Uytterhoeven authored
      Add Mac/m68k support to valkyriefb
      208b7d1e
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 28) · b0283159
      Geert Uytterhoeven authored
      Mac/m68k doesn't use the PowerMac NVRAM driver
      b0283159
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 27) · 6ab2603b
      Geert Uytterhoeven authored
      Mac m68k Ethernet driver updates (from 2.4.x)
       - mace68k_probe() got renamed to mace_probe()
       - Add missing MODULE_LICENSE()
       - Add missing register definition for SONIC_DCR2
      6ab2603b
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 26) · 24efb6f9
      Geert Uytterhoeven authored
      Misc Mac/m68k updates
       - Make sure we have one instance of mac_hw_present
       - Kill warning
       - Rename struct SCC to struct mac_SCC to avoid type conflict
      24efb6f9
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 25) · d2b3bb9b
      Geert Uytterhoeven authored
      Update ISA space code on m68k (from 2.4.x)
       - Add support for multiple types of ISA busses in one kernel image (e.g. an
         image for both Q40 and Amiga with PCMCIA)
       - Allow port operations on m68k if CONFIG_ISA is defined
      d2b3bb9b
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 24) · b1b26de5
      Geert Uytterhoeven authored
      M68k I/O core updates
       - Use memory mapped I/O access routines for non-ISA/PCI/PCMCIA m68k devices
       - Don't use writel() and friends on m68k memory mapped I/O
       - Fix typo in definition of writew()
       - Add missing definitions for {in,out}_le{16,32}()
      b1b26de5
    • Geert Uytterhoeven's avatar
      [PATCH] M68k update (part 23) · f0caf908
      Geert Uytterhoeven authored
      The old form of designated initializers are obsolete: we need to replace them
      with the ISO C forms before 2.6.  Gcc has always supported both forms anyway.
      
      (from Rusty Russell <rusty@rustcorp.com.au>, with some mods by me)
      f0caf908