1. 30 May, 2003 16 commits
    • Greg Kroah-Hartman's avatar
      Merge kroah.com:/home/greg/linux/BK/bleed-2.5 · 828289f7
      Greg Kroah-Hartman authored
      into kroah.com:/home/greg/linux/BK/gregkh-2.5
      828289f7
    • Andrew Morton's avatar
      [PATCH] fix generic_file_write() · 5c88d5d3
      Andrew Morton authored
      The recent writev() fix broke the invariant that ->commit_write _must_ be
      called after a successful ->prepare_write().  It leaves ext3 with a
      transaction stuck open and the filesystem locks up.
      5c88d5d3
    • Linus Torvalds's avatar
      Merge http://jfs.bkbits.net/linux-2.5 · ba5cd163
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      ba5cd163
    • Linus Torvalds's avatar
      Heh. Jens clashes with himself. · de5926e2
      Linus Torvalds authored
      de5926e2
    • Jens Axboe's avatar
      [PATCH] ide-cd/scsi/block fixups for SG_IO · 4533ed18
      Jens Axboe authored
      - Kill the bogus ret transformation in block/ioctl.c if we return
        -EINVAL, doesn't make any sense.
      
      - Don't allow sg_reserved_size to be set bigger than a request we can
        deal with...
      
      - timeout fixes.
      
      - Cleanup of user access.
      
      - Set SAM_STAT_CHECK_CONDITION, not CHECK_CONDITION which needs to be
        bit shifted 1 up.
      
      - Set sense_len correctly.
      
      - Account sense_len correctly, don't just increment by 1...
      
      - Use the correct pointer in post transform.
      
      - Fix oops in bio_map_user(), it must get the extra reference prior to
        calling bio_unmap_user() itself too.
      4533ed18
    • Jens Axboe's avatar
      [PATCH] scsi_ioctl HZ fixes · ff208476
      Jens Axboe authored
      According to http://www.torque.net/sg/p/sg_v3_ho.html, SG HOWTO,
      SG_[GET|SET]_TIMEOUTs are measured in "jiffies," while timeout field
      of SG_IO structure - in milliseconds. Inconsistent? Yes. Yet it's no
      excuse to disregard the specification. "Jiffies" are USER_HZ, 10ms on
      IA-32 platforms and has to be scaled to kernel "jiffies," as suggested
      below. As for "(jiffies - start_time) * (1000 / HZ)" vs.
      "((jiffies - start_time) * 1000) / HZ." Just think that HZ is 1024 on
      some platforms...
      ff208476
    • Jens Axboe's avatar
      [PATCH] ide-cd buglets · 4303cc87
      Jens Axboe authored
      Assorted small ide-cd fixes, found and fixed by Andy Polyakov
      <appro@fy.chalmers.se>.
      
      - CHECK_CONDITION really wants to be SAM_STAT_CHECK_CONDITION, the damn
        bit shift by one bit again
      
      - Set sense_len correctly
      
      - Do post_transform() on the right buffer.
      4303cc87
    • Jens Axboe's avatar
      [PATCH] copy the tag_map · ba094e84
      Jens Axboe authored
      From: Milton Miller <miltonm@bga.com>
      ba094e84
    • Bartlomiej Zolnierkiewicz's avatar
      [PATCH] fix two IDE list_head problems · 5897f768
      Bartlomiej Zolnierkiewicz authored
      Fix two problems related to list_head's (there are more, wip).
      Second bug was uncovered by wli's list_head debugging patch, thanks wli!
      
      - Remove ata_unused list and use &idedefault_driver->drives only,
        fixes list corruption (ata_unused will be later ressurected for hotplug).
      
      - Do not add same device twice to &idedefault_driver->drives, triggered
        by first calling ide_unregister_subdriver() and later ata_attach().
      5897f768
    • Bartlomiej Zolnierkiewicz's avatar
      [PATCH] kill "hdX=noremap" · 35e57224
      Bartlomiej Zolnierkiewicz authored
      Since Andries killed ide-geometry, remove "hdX=noremap"
      parameter as it is no longer needed.
      35e57224
    • Bartlomiej Zolnierkiewicz's avatar
      [PATCH] allow "hdX=scsi" for modular scsi/ide-scsi · 23898e5c
      Bartlomiej Zolnierkiewicz authored
      Allow a user to mark a device as for scsi
      emulation at boot even with modular scsi/ide-scsi.
      (from 2.4 patch by Matan Ziv-Av)
      23898e5c
    • Greg Kroah-Hartman's avatar
      Merge kroah.com:/home/greg/linux/BK/bleed-2.5 · d0f1e643
      Greg Kroah-Hartman authored
      into kroah.com:/home/greg/linux/BK/gregkh-2.5
      d0f1e643
    • Pavel Roskin's avatar
      [PATCH] USB: name uninitialized in scanner.c · a6fc631d
      Pavel Roskin authored
      Linux 2.5.69-bk18 prints something strange to the kernel log when the USB
      scanner is attached.  It turns out drivers/usb/image/scanner.c uses
      uninitialized variable "name" in probe_scanner() in the printk() call.
      That means that random memory is read and output to the kernel log.
      a6fc631d
    • Alan Stern's avatar
      [PATCH] USB: fix address assignment after device reset · f67f19b7
      Alan Stern authored
      Until my ambitious project gets going, this patch at least fixes the
      problem of assigning a device's new address following a device reset.
      The only change needed to David's original suggestion was to handle the
      pathway involved in registering root hubs.
      f67f19b7
    • Dave Kleikamp's avatar
      Merge jfs@jfs.bkbits.net:linux-2.5 · 6d8870cc
      Dave Kleikamp authored
      into shaggy.austin.ibm.com:/shaggy/bk/jfs-2.5
      6d8870cc
    • Greg Kroah-Hartman's avatar
      [PATCH] USB: remove some old references to /proc/bus/usb/drivers · f8d9e286
      Greg Kroah-Hartman authored
      This is needed, as the file was deleted over a year ago...
      f8d9e286
  2. 29 May, 2003 24 commits
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/sparc-2.5 · 83169a1a
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      83169a1a
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/net-2.5 · d8f87a6c
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      d8f87a6c
    • Andrew Morton's avatar
      [PATCH] Fixes trivial error in · 6fcb1ca4
      Andrew Morton authored
      From: Herbert Xu <herbert@gondor.apana.org.au>
      
      This patch adds a pair of missing quotes.
      6fcb1ca4
    • Andrew Morton's avatar
      [PATCH] Fix writev when a segment generates EFAULT · 7ce0fd51
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      If writev() is passed a vector in which the second or later segment generates
      a fault it will currently return -EFAULT.
      
      It shouldn't.  It should write what it can and return the number of bytes
      which were successfully copied.
      
      Fix that up by writing the partial result and then returning the right value.
      7ce0fd51
    • Andrew Morton's avatar
      [PATCH] svcsock use-after-free fix · 5c5f1d16
      Andrew Morton authored
      From: Neil Brown <neilb@cse.unsw.edu.au>
      
      Extract ->stamp from skb *before* freeing it in svcsock.c
      
      As we sometime copy and free an skb, and sometime us it in-place, we must
      be careful to extract information from it *before* it might be freed, not
      after.
      
      Manfred's page-unmapping debug patch found this one.
      5c5f1d16
    • Andrew Morton's avatar
      [PATCH] support 64 bit pci_alloc_consistent · 747ec9b0
      Andrew Morton authored
      From: Jes Sorensen <jes@wildopensource.com>
      
      This is patch which provides support for 64 bit address allocations from
      pci_alloc_consistent(), based on the address mask set through
      pci_set_consistent_dma_mask().  This is necessary on some platforms which
      are unable to provide physical memory in the lower 4GB block and do not
      provide IOMMU support for cards operating in certain bus modes, such as
      PCI-X on the SGI SN2.
      
      The default mask for pci_alloc_consistent() is still 32 bit as there are 64
      bit capable hardware out there that doesn't support 64 bit addresses for
      descripters etc.  Likewise, platforms which provide IOMMU support in all
      bus modes can ignore struct pci_dev->consistent_dma_mask and just return a
      32 bit address as before.
      
      The patch also includes changes to tg3.c to make it use the new api as well
      as a documentation update.  I have done my best on the documentation part,
      if anyone feel the can make my scribbles clearer, please do.
      
      Thanks to Dave Miller, Grant Grundler, James Bottomley, Colin Ngam, and
      Jeremy Higdon for input and code/documentation portions.
      747ec9b0
    • Andrew Morton's avatar
      [PATCH] unregister_netdev cleanups · 718aca7f
      Andrew Morton authored
      Replace
      
      	rtnl_lock();
      	register_netdevice(dev);
      	rtnl_unlock();
      
      with the equivalent
      
      	register_netdev();
      
      in numerous places.
      718aca7f
    • Andrew Morton's avatar
      [PATCH] Remove unneeded fcntl check · 03d5d52e
      Andrew Morton authored
      The NR_OPEN check in F_DUPFD is unneeded.  viro says:
      
      "We check the limits in locate_fd() (called by dupfd()).  Check for NR_OPEN
      can (and should) be dropped - locate_fd() will never go beyond that
      (expand_fd() will check it and refuse to go).
      
      "IOW, simply lose the check.  We _might_ want to check signedness, but that's
      it (IOW, check that arg will fit into 0..MAX_INT; second argument of dupfd()
      is an int).  OTOH, we might actually make dupfd() et.al.  take unsigned long
      and kill that crap completely."
      
      And indeed, the signedness is suspicious, so make various things in there
      unsigned too.
      03d5d52e
    • Andrew Morton's avatar
      [PATCH] speed up the unlink speedup · 3493e0ab
      Andrew Morton authored
      I'm not sure why I used igrab() in unlink().  igrab takes the oft-taken
      inode_lock.
      
      The caller has a ref, so a simple increment of i_count will suffice.
      3493e0ab
    • Andrew Morton's avatar
      [PATCH] write_one_page() fixlets · 6d01cc49
      Andrew Morton authored
      - set the number of pages to be written to "1".
      
      - Don't test PG_writeback twice.
      6d01cc49
    • Andrew Morton's avatar
      [PATCH] i2o memleak comment · 87852ab0
      Andrew Morton authored
      From: Andy Whitcroft <apw@shadowen.org>
      
      There's a spot in i2o where we deliberately leak some memory when the
      hardware plays up.  The alternative is to let the hardware scribble on it at
      some unknown time in the future.
      
      Things like the Stanford checker keep alleging that this is a bug.  So shut
      them up with a comment
      87852ab0
    • Andrew Morton's avatar
      [PATCH] kill lock_kernel() in inode_setattr() · a1a862b7
      Andrew Morton authored
      All we're doing in there is writing things into the inode.  I see no need for
      the lock_kernel().
      
      And holding lock_kernel() across mark_inode_dirty() hurts on big SMP.
      a1a862b7
    • Andrew Morton's avatar
      [PATCH] irq balance logic fix · 97b6cac7
      Andrew Morton authored
      From: Andi Kleen <ak@suse.de>
      
      The logic is: the global variable is set to the magic value
      IRQBALANCE_CHECK_ARCH.  It can be overwritten by a __setup function.  If
      the magic value is still set when the irq balancer is started it asks the
      subarchitecture using the NO_BALANCE_IRQ macro.  This is defined to a
      genapic field in the generic architecture, otherwise constant.  Then the
      global variable is set and when it is true no balancing happens.
      
      Previously I had this wrong in that it always disabled it.
      
      This part should be correct, but it still doesn't seem to work.
      
      (I left the printk in there until the problem is debugged, could be removed
      of course)
      97b6cac7
    • Andrew Morton's avatar
      [PATCH] zoran user-pointer fix · 82852538
      Andrew Morton authored
      From: Hollis Blanchard <hollis@austin.ibm.com>
      
      Fix a user pointer deref, found by the Stanford checker.
      82852538
    • Andrew Morton's avatar
      [PATCH] Fix CONFIG_PROCFS=n · b129cd76
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      three build fixes for CONFIG_PROC_FS=n:
      
      include/linux/procfs.h:
      
       - add missing proc_pid_unhash, proc_pid_flush declarations.  static
         inline functions that do nothing.
      
       - move semicolons around for kclist_{add,del}.  gcc-3.2.2 doesn't like
         the current syntax.
      
      drivers/net/pppoe.c:
      
       - proc_net doesn't exist if CONFIG_PROC_FS=n.
      
      drivers/scsi/scsi_priv.h:
      
       - add missing brackets to macro definition.
      b129cd76
    • Andrew Morton's avatar
      [PATCH] [VISWS] irqreturn_t conversion · a1b4b27a
      Andrew Morton authored
      From: Andrey Panin <pazke@donpac.ru>
      
      This small patch (against 2.5.70) updates visws_apic.c in accordance
      with linux irq handling changes.
      a1b4b27a
    • Andrew Morton's avatar
      [PATCH] export mmu_cr4_features to modules · 1ffc12e2
      Andrew Morton authored
      From: Jan Marek <linux@hazard.jcu.cz>
      
      The DRM modules (i810) need this symbol.
      
      As this is a special-case for one particular in-kernel module I changed Jan's
      patch from EXPORT_SYMBOL to EXPORT_SYMBOL_GPL.
      1ffc12e2
    • Andrew Morton's avatar
      [PATCH] fix oops on resume from apm bios initiated suspend · b8b98570
      Andrew Morton authored
      From: Milton Miller <miltonm@bga.com>
      
      mm is NULL for kernel threads without their own context.  active_mm is
      maintained the one we lazly switch from.
      
      Without this patch, apm bios initiated suspend events (eg panel close)
      cause an oops on resume in the LDT restore, killing kapmd, which causes
      further events to not be polled.
      b8b98570
    • Andrew Morton's avatar
      [PATCH] Fix suspend with pccardd running · e9f0f4bc
      Andrew Morton authored
      From: Pavel Machek <pavel@ucw.cz>
      
      This fixes suspend when pccards are used...
      e9f0f4bc
    • Andrew Morton's avatar
      [PATCH] fix typo in coda · c4df3ccd
      Andrew Morton authored
      We want an "|" in there, not "||".
      c4df3ccd
    • Hartmut Wahl's avatar
      [PATCH] USB: Patch for Samsung Digimax 410 · 6247b39a
      Hartmut Wahl authored
      *** a/drivers/usb/storage/unusual_devs.h	2003-05-22 20:54:26.000000000 +0200
      6247b39a
    • David Brownell's avatar
      [PATCH] USB: ethernet "gadget", rx overflows happen · fdf45852
      David Brownell authored
      I tightened up rx overflow logic in the net2280 driver
      a while back, and it broke MTU size packets in this
      driver (host pads them out).  This patch accomodates it
      by allocating a slightly larger buffer (almost 3*512).
      fdf45852
    • Ben Collins's avatar
      [PATCH] USB Multi-input quirk · 1f17689c
      Ben Collins authored
      1f17689c
    • David S. Miller's avatar
      Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5 · 1f78099a
      David S. Miller authored
      into kernel.bkbits.net:/home/davem/sparc-2.5
      1f78099a