libata-scsi.c (64b9fb5704a479d98a59f2a1d45d3331a8f847f8) | libata-scsi.c (086fa5ff0854c676ec333760f4c0154b3b242616) |
---|---|
1/* 2 * libata-scsi.c - helper library for ATA 3 * 4 * Maintained by: Jeff Garzik <jgarzik@pobox.com> 5 * Please ALWAYS copy linux-ide@vger.kernel.org 6 * on emails. 7 * 8 * Copyright 2003-2004 Red Hat, Inc. All rights reserved. --- 1083 unchanged lines hidden (view full) --- 1092 1093static int ata_scsi_dev_config(struct scsi_device *sdev, 1094 struct ata_device *dev) 1095{ 1096 if (!ata_id_has_unload(dev->id)) 1097 dev->flags |= ATA_DFLAG_NO_UNLOAD; 1098 1099 /* configure max sectors */ | 1/* 2 * libata-scsi.c - helper library for ATA 3 * 4 * Maintained by: Jeff Garzik <jgarzik@pobox.com> 5 * Please ALWAYS copy linux-ide@vger.kernel.org 6 * on emails. 7 * 8 * Copyright 2003-2004 Red Hat, Inc. All rights reserved. --- 1083 unchanged lines hidden (view full) --- 1092 1093static int ata_scsi_dev_config(struct scsi_device *sdev, 1094 struct ata_device *dev) 1095{ 1096 if (!ata_id_has_unload(dev->id)) 1097 dev->flags |= ATA_DFLAG_NO_UNLOAD; 1098 1099 /* configure max sectors */ |
1100 blk_queue_max_sectors(sdev->request_queue, dev->max_sectors); | 1100 blk_queue_max_hw_sectors(sdev->request_queue, dev->max_sectors); |
1101 1102 if (dev->class == ATA_DEV_ATAPI) { 1103 struct request_queue *q = sdev->request_queue; 1104 void *buf; 1105 1106 /* set the min alignment and padding */ 1107 blk_queue_update_dma_alignment(sdev->request_queue, 1108 ATA_DMA_PAD_SZ - 1); --- 2727 unchanged lines hidden --- | 1101 1102 if (dev->class == ATA_DEV_ATAPI) { 1103 struct request_queue *q = sdev->request_queue; 1104 void *buf; 1105 1106 /* set the min alignment and padding */ 1107 blk_queue_update_dma_alignment(sdev->request_queue, 1108 ATA_DMA_PAD_SZ - 1); --- 2727 unchanged lines hidden --- |