All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@logfs.org>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>,
	linux-driver@qlogic.com, linux-scsi@vger.kernel.org,
	target-devel <target-devel@vger.kernel.org>,
	Andrew Vasquez <andrew.vasquez@qlogic.com>,
	Giridhar Malavali <giridhar.malavali@qlogic.com>
Subject: Re: qla2xxx: Add LLD target-mode infrastructure for >= 24xx series
Date: Fri, 16 Mar 2012 09:59:07 -0400	[thread overview]
Message-ID: <20120316135907.GA9037@logfs.org> (raw)
In-Reply-To: <1331853015.10203.128.camel@haakon2.linux-iscsi.org>

Hello Nick!

On Thu, 15 March 2012 16:10:15 -0700, Nicholas A. Bellinger wrote:
> 
> iff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
> index e415d1e..2af075b 100644
> --- a/drivers/scsi/qla2xxx/qla_target.c
> +++ b/drivers/scsi/qla2xxx/qla_target.c
> @@ -3169,11 +3169,11 @@ static void qla_tgt_reject_free_srr_imm(struct scsi_qla_host *vha, struct qla_tg
>  static void qla_tgt_handle_srr_work(struct work_struct *work)
>  {
>         struct qla_tgt *tgt = container_of(work, struct qla_tgt, srr_work);
> -       struct scsi_qla_host *vha = NULL;
> +       struct scsi_qla_host *vha = tgt->vha;
>         struct qla_tgt_srr_ctio *sctio;
>         unsigned long flags;
>  
> -       ql_dbg(ql_dbg_tgt_mgt, tgt->vha, 0xe12e, "Entering SRR work (tgt %p)\n", tgt);
> +       ql_dbg(ql_dbg_tgt_mgt, vha, 0xe12e, "Entering SRR work (tgt %p)\n", tgt);
>  
>  restart:
>         spin_lock_irqsave(&tgt->srr_lock, flags);
> @@ -3192,17 +3192,17 @@ restart:
>                                           "be only one IMM SRR per CTIO SRR "
>                                           "(IMM SRR %p, id %d, CTIO %p\n",
>                                           vha->vp_idx, i, i->srr_id, sctio);
> -                                       qla_tgt_reject_free_srr_imm(vha, i, 0);
> +                                       qla_tgt_reject_free_srr_imm(tgt->vha, i, 0);

Everywhere else you move from tgt->vha to vha.  Is there a reason for
doing the reverse here?

Jörn

  reply	other threads:[~2012-03-16 13:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 17:20 qla2xxx: Add LLD target-mode infrastructure for >= 24xx series Dan Carpenter
2012-03-15 23:10 ` Nicholas A. Bellinger
2012-03-16 13:59   ` Jörn Engel [this message]
2012-03-17  1:22     ` Nicholas A. Bellinger
  -- strict thread matches above, loose matches on Subject: below --
2012-05-07 13:59 Dan Carpenter
2012-05-07 20:51 ` Nicholas A. Bellinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120316135907.GA9037@logfs.org \
    --to=joern@logfs.org \
    --cc=andrew.vasquez@qlogic.com \
    --cc=dan.carpenter@oracle.com \
    --cc=giridhar.malavali@qlogic.com \
    --cc=linux-driver@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.org \
    --cc=target-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.