From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@lst.de>, linux-scsi@vger.kernel.org
Cc: Doug Ledford <dledford@redhat.com>
Subject: Re: [PATCH 4/4] scsi: remove scsi_set_tag_type
Date: Wed, 03 Dec 2014 14:34:23 +0100 [thread overview]
Message-ID: <547F115F.4080601@suse.de> (raw)
In-Reply-To: <1416839781-26988-5-git-send-email-hch@lst.de>
On 11/24/2014 03:36 PM, Christoph Hellwig wrote:
> There is no benefit over just setting sdev->simple_tags directly.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> drivers/scsi/53c700.c | 2 +-
> drivers/scsi/tmscsim.c | 2 +-
> include/scsi/scsi_tcq.h | 15 ---------------
> 3 files changed, 2 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/scsi/53c700.c b/drivers/scsi/53c700.c
> index 2c87a7a..82abfce 100644
> --- a/drivers/scsi/53c700.c
> +++ b/drivers/scsi/53c700.c
> @@ -902,8 +902,8 @@ process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata
> hostdata->tag_negotiated &= ~(1<<scmd_id(SCp));
>
> SCp->device->tagged_supported = 0;
> + SCp->device->simple_tags = 0;
> scsi_change_queue_depth(SCp->device, host->cmd_per_lun);
> - scsi_set_tag_type(SCp->device, 0);
> } else {
> shost_printk(KERN_WARNING, host,
> "(%d:%d) Unexpected REJECT Message %s\n",
> diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c
> index 6c3c2ce..14ccc9a 100644
> --- a/drivers/scsi/tmscsim.c
> +++ b/drivers/scsi/tmscsim.c
> @@ -2190,7 +2190,7 @@ static int dc390_slave_configure(struct scsi_device *sdev)
> * XXX: Note that while this driver used to called scsi_activate_tcq,
> * it never actually set a tag type, so emulate the old behavior.
> */
> - scsi_set_tag_type(sdev, 0);
> + sdev->simple_tags = 0;
>
> if (sdev->tagged_supported && (dcb->DevMode & TAG_QUEUEING_)) {
> dcb->SyncMode |= EN_TAG_QUEUEING;
> diff --git a/include/scsi/scsi_tcq.h b/include/scsi/scsi_tcq.h
> index 681e010..e624aca 100644
> --- a/include/scsi/scsi_tcq.h
> +++ b/include/scsi/scsi_tcq.h
> @@ -15,21 +15,6 @@
>
>
> #ifdef CONFIG_BLOCK
> -static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)
> -{
> - switch (tag) {
> - case MSG_ORDERED_TAG:
> - case MSG_SIMPLE_TAG:
> - sdev->simple_tags = 1;
> - break;
> - case 0:
> - /* fall through */
> - default:
> - sdev->simple_tags = 0;
> - break;
> - }
> -}
> -
> static inline struct scsi_cmnd *scsi_mq_find_tag(struct Scsi_Host *shost,
> int unique_tag)
> {
>
Probably needs to be adjusted now that's tmscsim is gone, but
nevertheless:
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 21284 (AG Nürnberg)
--
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
next prev parent reply other threads:[~2014-12-03 13:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 14:36 queue_type fixups Christoph Hellwig
2014-11-24 14:36 ` [PATCH 1/4] scsi: remove ->change_queue_type method Christoph Hellwig
2014-11-28 9:59 ` Bart Van Assche
2014-12-03 13:32 ` Hannes Reinecke
2014-12-04 9:10 ` Christoph Hellwig
2014-12-04 2:27 ` Martin K. Petersen
2014-11-24 14:36 ` [PATCH 2/4] scsi: never drop to untagged mode during queue ramp down Christoph Hellwig
2014-11-28 9:59 ` Bart Van Assche
2014-12-03 13:32 ` Hannes Reinecke
2014-12-04 2:28 ` Martin K. Petersen
2014-11-24 14:36 ` [PATCH 3/4] scsi: remove scsi_get_tag_type Christoph Hellwig
2014-11-28 10:00 ` Bart Van Assche
2014-12-03 13:33 ` Hannes Reinecke
2014-12-04 2:28 ` Martin K. Petersen
2014-11-24 14:36 ` [PATCH 4/4] scsi: remove scsi_set_tag_type Christoph Hellwig
2014-11-28 10:00 ` Bart Van Assche
2014-12-03 13:34 ` Hannes Reinecke [this message]
2014-12-04 2:29 ` Martin K. Petersen
2014-11-24 15:07 ` [PATCH 5/4] scsi: remove MSG_*_TAG defines Christoph Hellwig
2014-11-28 9:58 ` Bart Van Assche
2014-12-01 9:03 ` Christoph Hellwig
2014-12-01 11:44 ` Bart Van Assche
2014-12-04 2:31 ` Martin K. Petersen
2014-12-03 9:32 ` queue_type fixups 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=547F115F.4080601@suse.de \
--to=hare@suse.de \
--cc=dledford@redhat.com \
--cc=hch@lst.de \
--cc=linux-scsi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).