[openib-general] questions about gen2 srp driver

Roland Dreier rdreier at cisco.com
Mon Feb 6 17:27:56 PST 2006


    chas> it seems to take scsi_host->host_lock with a spin_lock_irq()
    chas> inside a couple of work queues.  i believe work queues run
    chas> at process context and not interrupt context.  therefore,
    chas> one should probably use spin_lock_irqsave()?

Yes, it's exactly because we know that work queues run in process
context with interrupts enabled which lets us use spin_lock_irq.

    chas> if there is only a single set of rdma keys how can the
    chas> driver support more than one command (particularly on a
    chas> target with multiple lun's) outstanding command?  i didn't
    chas> think the srp_post_send() was synchronus with respect to the
    chas> completion of the current rdma request?

There's no limitation on number of outstanding RDMAs targeting a
single R_Key.

 - R.



More information about the general mailing list