From: Christoph Hellwig <hch@infradead.org>
To: Hannes Reinecke <hare@suse.de>
Cc: Arvind Kumar <arvindkumar@vmware.com>,
pv-drivers@vmware.com, James Bottomley <jbottomley@parallels.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] vmw_pvscsi: fixup tagging
Date: Fri, 17 Oct 2014 06:16:51 -0700 [thread overview]
Message-ID: <20141017131651.GD16538@infradead.org> (raw)
In-Reply-To: <1412234501-78199-1-git-send-email-hare@suse.de>
Can I get a review from VMWare for this one, please?
On Thu, Oct 02, 2014 at 09:21:41AM +0200, Hannes Reinecke wrote:
> The request (and SCSI command) tag is the tag number assigned
> by the generic block-tagging code, not the SCSI-II tag messages.
> Those are represented by the device flags 'tagged_supported',
> 'simple_tags', and 'ordered_tags'.
> (The SCSI midlayer doesn't use HEAD_OF_QUEUE tags).
> So fixup vmw_pvscsi to assign the correct tag type.
>
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> ---
> drivers/scsi/vmw_pvscsi.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c
> index 598f65e..d18df8c 100644
> --- a/drivers/scsi/vmw_pvscsi.c
> +++ b/drivers/scsi/vmw_pvscsi.c
> @@ -724,9 +724,8 @@ static int pvscsi_queue_ring(struct pvscsi_adapter *adapter,
>
> e->tag = SIMPLE_QUEUE_TAG;
> if (sdev->tagged_supported &&
> - (cmd->tag == HEAD_OF_QUEUE_TAG ||
> - cmd->tag == ORDERED_QUEUE_TAG))
> - e->tag = cmd->tag;
> + sdev->ordered_tags)
> + e->tag = ORDERED_QUEUE_TAG;
>
> if (cmd->sc_data_direction == DMA_FROM_DEVICE)
> e->flags = PVSCSI_FLAG_CMD_DIR_TOHOST;
> --
> 1.8.5.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---
next prev parent reply other threads:[~2014-10-17 13:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 7:21 [PATCH] vmw_pvscsi: fixup tagging Hannes Reinecke
2014-10-17 13:16 ` Christoph Hellwig [this message]
2014-10-17 18:34 ` Arvind Kumar
2014-10-18 15:13 ` Christoph Hellwig
2014-10-18 17:42 ` Hannes Reinecke
2014-10-20 22:12 ` Arvind Kumar
2014-11-03 18:30 ` Christoph Hellwig
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=20141017131651.GD16538@infradead.org \
--to=hch@infradead.org \
--cc=arvindkumar@vmware.com \
--cc=hare@suse.de \
--cc=jbottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
--cc=pv-drivers@vmware.com \
/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.