linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: James.Bottomley@suse.de
Cc: linux-scsi@vger.kernel.org, Eric.Moore@lsi.com
Subject: [PATCH 2/4] usb-storage: do not increment cmd->serial_number
Date: Mon, 4 Apr 2011 09:42:22 -0400	[thread overview]
Message-ID: <20110404134221.GB32522@infradead.org> (raw)
In-Reply-To: <20110404134203.GA29525@infradead.org>

The isd200 sub-driver increments the command serial number despite not
using it at all in it's routine for sending internal scsi commands.
Remove the increment to prepare for removing the serial_number field.

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/drivers/usb/storage/isd200.c
===================================================================
--- linux-2.6.orig/drivers/usb/storage/isd200.c	2011-04-02 07:34:20.983235059 -0700
+++ linux-2.6/drivers/usb/storage/isd200.c	2011-04-02 07:34:27.907237105 -0700
@@ -499,7 +499,6 @@ static int isd200_action( struct us_data
 	memset(&ata, 0, sizeof(ata));
 	srb->cmnd = info->cmnd;
 	srb->device = &srb_dev;
-	++srb->serial_number;
 
 	ata.generic.SignatureByte0 = info->ConfigData.ATAMajorCommand;
 	ata.generic.SignatureByte1 = info->ConfigData.ATAMinorCommand;

  parent reply	other threads:[~2011-04-04 13:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 13:42 [PATCH 0/4] cmd->serial_number removal, part 1 Christoph Hellwig
2011-04-04 13:42 ` [PATCH 1/4] scsi: remove cmd->serial_number litter Christoph Hellwig
2011-04-04 13:42 ` Christoph Hellwig [this message]
2011-04-04 13:42 ` [PATCH 3/4] mpt2sas: do not check serial_number in the abort handler Christoph Hellwig
2011-04-04 14:20   ` Moore, Eric
2011-04-04 13:42 ` [PATCH 4/4] fusion: " Christoph Hellwig
2011-05-25 13:41   ` Desai, Kashyap
2011-05-25 15:18     ` James Bottomley
2011-05-25 15:22       ` Desai, Kashyap

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=20110404134221.GB32522@infradead.org \
    --to=hch@infradead.org \
    --cc=Eric.Moore@lsi.com \
    --cc=James.Bottomley@suse.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).