1. 06 Feb, 2003 3 commits
    • Rusty Russell's avatar
      [PATCH] 2.5.59 add two help texts to drivers_scsi_Kconfig · baaf76dd
      Rusty Russell authored
      From:  Steven Cole <elenstev@mesatop.com>
      
        Here are some help texts from 2.4.21-pre3 Configure.help which are
        needed in 2.5.59 drivers/scsi/Kconfig.
      
        Steven
      baaf76dd
    • Rusty Russell's avatar
      [PATCH] [patch, 2.5] scsi_qla1280.c free on error path · f8646d20
      Rusty Russell authored
      From:  Marcus Alanen <maalanen@ra.abo.fi>
      
        Remove check_region in favour of request_region. Free resources
        properly on error path. Horribly subtle ioremap/iounmap lurks here I
        think, in qla1280_pci_config(), which the below patch should take care
        of.
      
        I'm wondering if there couldn't / shouldn't be a better way to
        allocate resources. Obviously lots of drivers have broken error paths.
        Is this even necessary?
      
        Marcus
      
      
        #
        # create_patch: qla1280_release_on_error_path-2002-12-08-A.patch
        # Date: Sun Dec  8 22:32:33 EET 2002
        #
      f8646d20
    • Christoph Hellwig's avatar
      [SCSI] Remove host_active · d30a24be
      Christoph Hellwig authored
      It isn't used anywhere anymore
      d30a24be
  2. 05 Feb, 2003 5 commits
    • Patrick Mansfield's avatar
      [PATCH] add back single_lun support · 9b300b14
      Patrick Mansfield authored
      On Wed, Feb 05, 2003 at 05:14:00PM -0600, James Bottomley wrote:
      
      > I don't see device_active getting set anywhere.
      >
      > shouldn't we just dump device_active in favour of a non-zero check of
      > device_busy (it's all done under the queue lock, anyway).
      >
      > James
      
      OK - once more.
      
      This patch against the current scsi-misc-2.5 adds back the check for the
      single_lun case and removes the unused device_active field.
      
      I compiled and booted with this applied but don't have any devices (i.e.
      CD ROM changer) for testing.
      9b300b14
    • James Bottomley's avatar
    • James Bottomley's avatar
      Fix sr_ioctl.c bounce buffer usage · 79e99219
      James Bottomley authored
      Make sure all DMAs come from kmalloc'd memory with the correct
      GFP_ flags
      79e99219
    • James Bottomley's avatar
    • Rik van Riel's avatar
      [PATCH] Re: [CHECKER] 112 potential memory leaks in 2.5.48 · b0bb3273
      Rik van Riel authored
      On Wed, 5 Feb 2003, Rik van Riel wrote:
      > On Tue, 4 Feb 2003, Andy Chou wrote:
      
      Thanks for the checker output.  First patch below...
      
      > > [BUG]
      > > u1/acc/linux/2.5.48/drivers/scsi/sr_ioctl.c:188:sr_do_ioctl:
      > > ERROR:LEAK:85:188:Memory leak [Allocated from:
      > > /u1/acc/linux/2.5.48/drivers/scsi/sr_ioctl.c:85:scsi_allocate_request]
      >
      > Bug indeed, I've created a patch to fix the possible leak of
      > a scsi request, but can't figure out the bounce buffer logic...
      
      The patch below fixes the scsi request leak. I'm not sure
      how the bounce buffer thing is supposed to work (Christoph?
      James?) so I'm not touching that at the moment.
      
      Linus, could you please apply this patch (against today's
      bk tree) ?
      
      thank you,
      
      Rik
      --
      Bravely reimplemented by the knights who say "NIH".
      http://www.surriel.com/		http://guru.conectiva.com/
      Current spamtrap:  <a href=mailto:"october@surriel.com">october@surriel.com</a>
      
      
      ===== drivers/scsi/sr_ioctl.c 1.27 vs edited =====
      b0bb3273
  3. 04 Feb, 2003 3 commits
    • Christoph Hellwig's avatar
      [PATCH] fixes and cleanups for the new command allocation code · 21cd9dc6
      Christoph Hellwig authored
      On Tue, Feb 04, 2003 at 12:33:23PM -0600, James Bottomley wrote:
      > I agree with this.  It is a guarantee the mid-layer makes to the LLD
      > (and there are some LLDs with static issue queues for which this is a
      > hard requirement).  I think (once the dust has settled and we've agreed
      > which field holds the current queue depth) what's needed is a check in
      > the scsi_request_fn() to see if we're over the LLD's current depth for
      > the device and plug the queue and exit if we are.  The next returning
      > command will unplug and send.
      >
      > This way of doing things means that we're free to prep as many commands
      > as we can, but we guarantee only to have the correct number outstanding
      > to the LLD.
      
      Okay, here's a new versin of the patch.  Changes:
      
      * throttel on number of inflight command blocks
      * rename scsi_cmnd->new_queue_depth to scsi_cmnd->queue_depth
      * remove scsi_do_cmd
      * serialize pool handling
      21cd9dc6
    • Christoph Hellwig's avatar
      [PATCH] remove __scsi_add_host · ed12fbdd
      Christoph Hellwig authored
      now that scsi_add_host accepts a NMULL dev argument we don't need it
      anymore.
      ed12fbdd
    • Andrew Morton's avatar
      [PATCH] qlogic fix · 82ae989b
      Andrew Morton authored
      Linus's current BK tree needs the following build fix:
      82ae989b
  4. 03 Feb, 2003 15 commits
  5. 02 Feb, 2003 14 commits
    • James Bottomley's avatar
    • Jeff Garzik's avatar
      Merge kernel.bkbits.net:net-drivers-2.5 · 0145e5c9
      Jeff Garzik authored
      into redhat.com:/garz/repo/net-drivers-2.5
      0145e5c9
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk · 49a85c6a
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      49a85c6a
    • Russell King's avatar
      [ARM] Add arch/arm/common · 1687c697
      Russell King authored
      Certain support files are shared between various ARM machine classes.
      In other to sanely support these, we place the shared files in
      arch/arm/common instead of the individual machine class directories.
      1687c697
    • Linus Torvalds's avatar
      Merge · 4251bd1a
      Linus Torvalds authored
      4251bd1a
    • Andrew Morton's avatar
      [PATCH] fix show_task oops · c7766898
      Andrew Morton authored
      Patch from Russell King <rmk@arm.linux.org.uk>
      
      show_task() attempts to calculate the amount of free space which hasn't been
      written to on the kernel stack by reading from the base of the kernel stack
      upwards.
      
      However, it mistakenly uses the task_struct pointer as the base of the stack,
      which it isn't, and this can cause an oops.
      
      Here is a patch which uses the task thread pointer instead, which should be
      located at the bottom of the kernel stack.  It appears this was missed when
      the thread structure was introduced.
      c7766898
    • Andrew Morton's avatar
      [PATCH] exit_mmap fix for 64bit->32bit execs · 2e7c21ea
      Andrew Morton authored
      The recent exit_mmap() changes broke PPC64 when 64-bit applications exec
      32-bit ones.  ia32-on-ia64 was broken as well
      
      What is happening is that load_elf_binary() sets TIF_32BIT (via
      SET_PERSONALITY) _before_ running exit_mmap().  So when we're unmapping the
      vma's of the old image, we are running under the new image's personality.
      
      This causes PPC64 to pass a 32-bit TASK_SIZE to unmap_vmas(), even when the
      execing process had a 64-bit image.  Because unmap_vmas() is not provided
      with the correct virtual address span it does not unmap all the old image's
      vma's and we go BUG_ON(mm->map_count) in exit_mmap().
      
      The early SET_PERSONALITY() is required before we look up the interpreter
      because the lookup of the executable has to happen under the alternate root
      which SET_PERSONALITY() may set.
      
      Unfortunately this means that we're running flush_old_exec() under the new
      exec's personality.  Hence this bug.
      
      So what the patch does is to simply pass ~0UL into unmap_vmas(), which tells
      it to unmap everything regardless of current personality.  Which is what the
      old open-coded VMA killer was doing.
      
      There remains the problem that some architectures are sometimes passing the
      incorrect TASK_SIZE into tlb_finish_mmu().  They've always been doing that.
      2e7c21ea
    • Andrew Morton's avatar
      [PATCH] Fix generic_file_readonly_mmap() · b91c1b1b
      Andrew Morton authored
      We cannot clear VM_MAYWRITE in there - it turns writeable MAP_PRIVATE
      mappings into readonly ones.
      
      So change it back to the 2.4 form - disallow a writeable MAP_SHARED mapping
      against filesystems which do not implement ->writepage().
      b91c1b1b
    • Andrew Morton's avatar
      [PATCH] soundcore.c referenced non-existent errno variable · 858743c2
      Andrew Morton authored
      Patch from: Petr Vandrovec <vandrove@vc.cvut.cz>
      
      soundcore is trying to perform kernel syscalls to load firmware, but falls
      afoul of missing `errno'.  Convert it to use VFS API functions.
      858743c2
    • Andrew Morton's avatar
      [PATCH] floppy locking fix · 7bb503fc
      Andrew Morton authored
      redo_fd_request() needs to take the queue lock around the call to
      elv_next_request().
      7bb503fc
    • Andrew Morton's avatar
      [PATCH] atyfb compilation fix · 0391b9be
      Andrew Morton authored
      Patch from "Andres Salomon" <dilinger@voxel.net>
      
      Fix compilation of atyfb_base.c
      0391b9be
    • Andrew Morton's avatar
      [PATCH] correct wait accounting in wait_on_buffer() · 8458eee6
      Andrew Morton authored
      __wait_on_buffer() needs to use io_schedule(), so processes in there are
      accounted as being in I/O wait.
      8458eee6
    • Andrew Morton's avatar
      [PATCH] pcmcia timer initialisation fixes · 7a3ed3de
      Andrew Morton authored
      pcmcia timer initialisation fixes from Anton Blanchard
      7a3ed3de
    • Andrew Morton's avatar
      [PATCH] i386 pgd_index() doesn't parenthesize its arg · 80e06f8f
      Andrew Morton authored
      Patch from William Lee Irwin III <wli@holomorphy.com>
      
      PAE's pte_none() and pte_pfn() evaluate their arguments twice;
      analogous fixes have been made to other things; c.f. pgtable.h's long
      list of one-line inlines with parentheses still around their args.
      80e06f8f