* [PATCH] SCSI command bytes are copied twice
@ 2001-04-18 22:11 Khalid Aziz
0 siblings, 0 replies; only message in thread
From: Khalid Aziz @ 2001-04-18 22:11 UTC (permalink / raw)
To: linux-kernel
SCSI subsystem needs to copy the SCSI command bytes into a Scsi_Request
structure for a SCSI command being issued by one of the higher level
drivers before it queues the command up. It does this copy twice. Even
though this will cause no more than 12 bytes to be copied twice, this
code is still invoked frequently enough to justify not incurring the
overhead of a redundant copy. Following patch should fix this.
Thanks,
Khalid
====================================================================
Khalid Aziz Linux Development Laboratory
(970)898-9214 Hewlett-Packard
khalid@fc.hp.com Fort Collins, CO
--- linux-2.4.3-orig/drivers/scsi/scsi.c Fri Feb 9 12:30:23 2001
+++ linux-2.4.3/drivers/scsi/scsi.c Wed Apr 18 14:22:00 2001
@@ -832,9 +832,6 @@
SRpnt->sr_allowed = retries;
SRpnt->sr_done = done;
SRpnt->sr_timeout_per_command = timeout;
-
- memcpy((void *) SRpnt->sr_cmnd, (const void *) cmnd,
- sizeof(SRpnt->sr_cmnd));
if (SRpnt->sr_cmd_len == 0)
SRpnt->sr_cmd_len = COMMAND_SIZE(SRpnt->sr_cmnd[0]);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-18 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 22:11 [PATCH] SCSI command bytes are copied twice Khalid Aziz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox