09 Jun, 2009

1 commit


09 Oct, 2008

1 commit

  • Right now SCSI and others do their own command timeout handling.
    Move those bits to the block layer.

    Instead of having a timer per command, we try to be a bit more clever
    and simply have one per-queue. This avoids the overhead of having to
    tear down and setup a timer for each command, so it will result in a lot
    less timer fiddling.

    Signed-off-by: Mike Anderson
    Signed-off-by: Jens Axboe

    Jens Axboe
     

18 Feb, 2008

1 commit

  • The spinlock is held over too large a region: pscratch is a permanent
    address (it's allocated at boot time and never changes). All you need
    the smp lock for is mediating the scratch in use flag, so fix this by
    moving the spinlock into the case where we set the pscratch_busy flag
    to false.

    Cc: Stable Tree
    Signed-off-by: James Bottomley

    James Bottomley
     

13 Oct, 2007

6 commits

  • - Cleanup the rest of the scsi_cmnd->SCp members and move them
    to gdth_cmndinfo:
    SCp.this_residual => priority
    SCp.buffers_residual => timeout
    SCp.Status => status and dma_dir
    SCp.Message => info
    SCp.have_data_in => volatile wait_for_completion
    SCp.sent_command => OpCode
    SCp.phase => phase

    - Two more members will be naturally removed in the !use_sg cleanup

    TODO: What is the meaning of gdth_cmndinfo.phase? (rhetorically)

    Signed-off-by Boaz Harrosh
    Signed-off-by: James Bottomley

    Boaz Harrosh
     
  • - scsi_cmnd and specifically ->SCp of, where heavily abused
    with internal meaning members and flags. So introduce a new
    struct gdth_cmndinfo, put it on ->host_scribble and define a
    gdth_cmnd_priv() accessor to retrieve it from a scsi_cmnd.

    - The structure now holds two members:
    internal_command - replaces the IS_GDTH_INTERNAL_CMD() croft.
    sense_paddr - which was a 64-bit spanning on 2 32-bit members of SCp.
    More overloaded members from SCp and scsi_cmnd will be moved in a later
    patch (For easy review).

    - Split up gdth_queuecommand to an additional internal_function. The later
    is the one called by gdth_execute(). This will be more evident later in
    the scsi accessors patch, but it also facilitates in the differentiation
    between internal_command and external. And the setup of gdth_cmndinfo of
    each command.

    Signed-off-by Boaz Harrosh
    Signed-off-by: James Bottomley

    Boaz Harrosh
     
  • - Based on same patch from Christoph Hellwig

    - Get rid of all the indirection in the Scsi_Host private data and always
    put the gdth_ha_str directly into it.

    - Change all internal functions prototype to recieve an "gdth_ha_str *ha"
    pointer directlly and kill all that redundent access to the "gdth_ctr_tab[]"
    controller-table.

    Signed-off-by: Boaz Harrosh
    Signed-off-by: Christoph Hellwig
    Signed-off-by: James Bottomley

    Boaz Harrosh
     
  • The virt_ctr option allows to register a new scsi_host for each bus
    on the raid controller. This non-default option makes no sense with
    the current scsi code and prevents cleaning up the host registration,
    so remove it.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Boaz Harrosh
    Signed-off-by: James Bottomley

    Christoph Hellwig
     
  • * Remove in-source changelog. It's archived permanently in git and
    various kernel archives, and changelogs should exist purely in git.

    * Remove 2.4.x kernel support. It is an active obstacle to
    modernizing this driver, at this point. This includes killing
    gdth_kcompat.h which is 100% redundant in modern kernels.

    Signed-off-by: Jeff Garzik
    Signed-off-by: Boaz Harrosh
    Signed-off-by: James Bottomley

    Jeff Garzik
     
  • The ->done member was being used to mark commands as being internal.
    I decided to put a magic number in ->underflow instead. I believe this
    to be safe as no current user of ->underflow has any of the bottom 9
    bits set.

    Signed-off-by: Matthew Wilcox
    Signed-off-by: James Bottomley

    Matthew Wilcox
     

10 Jun, 2006

1 commit


10 Nov, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds