aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-26 16:28:47 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-26 16:28:47 -0400
commit2d986010ad13a00b83851238d52601d6092df40e (patch)
tree6a43ffd30290fc051435643d485ad12fb1448ed5 /drivers/scsi/scsi_lib.c
parent6b6a93c6876ea1c530d5d3f68e3678093a27fab0 (diff)
parente10fb91c4dc81a4ae47caf0828df152f600f2546 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 10506f9cd0c9..7a91ca3d32a6 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -146,12 +146,6 @@ int scsi_queue_insert(struct scsi_cmnd *cmd, int reason)
146 device->device_blocked = device->max_device_blocked; 146 device->device_blocked = device->max_device_blocked;
147 147
148 /* 148 /*
149 * Register the fact that we own the thing for now.
150 */
151 cmd->state = SCSI_STATE_MLQUEUE;
152 cmd->owner = SCSI_OWNER_MIDLEVEL;
153
154 /*
155 * Decrement the counters, since these commands are no longer 149 * Decrement the counters, since these commands are no longer
156 * active on the host/device. 150 * active on the host/device.
157 */ 151 */
@@ -299,9 +293,7 @@ EXPORT_SYMBOL(scsi_wait_req);
299 */ 293 */
300static int scsi_init_cmd_errh(struct scsi_cmnd *cmd) 294static int scsi_init_cmd_errh(struct scsi_cmnd *cmd)
301{ 295{
302 cmd->owner = SCSI_OWNER_MIDLEVEL;
303 cmd->serial_number = 0; 296 cmd->serial_number = 0;
304 cmd->abort_reason = 0;
305 297
306 memset(cmd->sense_buffer, 0, sizeof cmd->sense_buffer); 298 memset(cmd->sense_buffer, 0, sizeof cmd->sense_buffer);
307 299
@@ -322,7 +314,6 @@ static int scsi_init_cmd_errh(struct scsi_cmnd *cmd)
322 memcpy(cmd->data_cmnd, cmd->cmnd, sizeof(cmd->cmnd)); 314 memcpy(cmd->data_cmnd, cmd->cmnd, sizeof(cmd->cmnd));
323 cmd->buffer = cmd->request_buffer; 315 cmd->buffer = cmd->request_buffer;
324 cmd->bufflen = cmd->request_bufflen; 316 cmd->bufflen = cmd->request_bufflen;
325 cmd->abort_reason = 0;
326 317
327 return 1; 318 return 1;
328} 319}
@@ -623,8 +614,6 @@ static struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *cmd, int gfp_mas
623 614
624 sgp = scsi_sg_pools + cmd->sglist_len; 615 sgp = scsi_sg_pools + cmd->sglist_len;
625 sgl = mempool_alloc(sgp->pool, gfp_mask); 616 sgl = mempool_alloc(sgp->pool, gfp_mask);
626 if (sgl)
627 memset(sgl, 0, sgp->size);
628 return sgl; 617 return sgl;
629} 618}
630 619