RE: [PATCH 2.6.12-rc4-mm1 3/4] megaraid_sas: updating the driver

From: Salyzyn, Mark (mark_salyzyn_at_adaptec.com)
Date: 05/24/05

  • Next message: Clifford T. Matthews: "surprisingly slow accept/connect cycle time"
    Date:	Tue, 24 May 2005 16:45:05 -0400
    To: "James Bottomley" <James.Bottomley@SteelEye.com>, "Arjan van de Ven" <arjan@infradead.org>
    
    

    James Bottomley writes:
    > On Mon, 2005-05-16 at 10:06 +0200, Arjan van de Ven wrote:
    >> > + spin_lock( instance->host_lock );
    >> > + cmd->scmd->scsi_done( cmd->scmd );
    >> > + spin_unlock( instance->host_lock );
    >>
    >> are you really sure you don't want to use spin_lock_irqsave() here ?
    >
    >Actually, don't bother with the lock at all. scsi_done() is designed
    to
    >be called locklessly.

    Could I get an historical (2.4 & Distribution) perspective on this. At
    which point, or what code/include/manifest/version delineating it, would
    you say the driver is no longer, if ever, required to place a lock
    (host_lock or io_request_lock) around the scsi_done call?

    I expect (or hope) the answer to be: always needs io_request_lock in
    2.4, never needed the host_lock in 2.5+.

    -- Mark Salyzyn
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Clifford T. Matthews: "surprisingly slow accept/connect cycle time"

    Relevant Pages

    • [PATCH] NULL pointer deref in tcp_do_twkill_work()
      ... Shouldn't the loop always restart from the beginning instead of using the ... The alternative is to not drop the lock, but I'm guessing we need to do ... Proposed patch is attached. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-07
      ... With kjournald spinning on a bit lock until it finishes it's ... Although it only deadlocks on your system if it was a real-time task, ... highest priority task on the system, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6.12-rc4-mm1 3/4] megaraid_sas: updating the driver
      ... don't bother with the lock at all. ... doh sorry I missed that ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC][PATCH] O(1) Entitlement Based Scheduler
      ... >> of a single CPU's capacity that the task may use. ... The task is removed from the runqueue and a timer is scheduled to put it ... > A holds lock that can not be unlocked, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kswapd in tight loop 2.6.9-rc3-bk-recent
      ... > appear to touch vmscan or mm/ in general). ... I also wonder if it'll lock up if just the first zone has ->all_unreclaimable. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)