From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicholas A. Bellinger" Subject: [RFC v3 14/15] eata: Add scsi_cmd_get_serial() call Date: Thu, 23 Sep 2010 16:39:31 -0700 Message-ID: <1285285171-16626-1-git-send-email-nab@linux-iscsi.org> Return-path: Received: from smtp104.sbc.mail.ac4.yahoo.com ([76.13.13.243]:27209 "HELO smtp104.sbc.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756413Ab0IWXjh (ORCPT ); Thu, 23 Sep 2010 19:39:37 -0400 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi , linux-kernel , Vasu Dev , Tim Chen , Andi Kleen Cc: James Smart , Andrew Vasquez , FUJITA Tomonori , Hannes Reinecke , Joe Eykholt , Christoph Hellwig , MPTFusionLinux , "eata.c maintainer" , Nicholas Bellinger From: Nicholas Bellinger This patch adds a scsi_cmd_get_serial() call in eata2x_queuecommand() to setup a valid struct scsi_cmnd->serial_number because ihdlr() still depends upon this being set. Signed-off-by: Nicholas A. Bellinger --- drivers/scsi/eata.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c index d1c3137..e56a0d7 100644 --- a/drivers/scsi/eata.c +++ b/drivers/scsi/eata.c @@ -1765,6 +1765,11 @@ static int eata2x_queuecommand(struct scsi_cmnd *SCpnt, struct hostdata *ha = (struct hostdata *)shost->hostdata; unsigned int i, k; struct mscp *cpp; + /* + * Call scsi_cmd_get_serial() because we need a valid serial number + * for the main eata interrupt handler in ihdlr() + */ + scsi_cmd_get_serial(SCpnt); if (SCpnt->host_scribble) panic("%s: qcomm, pid %ld, SCpnt %p already active.\n", -- 1.7.3