Commit 8dfb4dc9 authored by James Bottomley's avatar James Bottomley Committed by Jens Axboe

[PATCH] Undo SCSI 8-byte alignment relaxation

This makes the default alignment requirements be 512 bytes for SCSI,
the way it used to be.

Jens will fix the SCSI layer problems, but low-level drivers might have
other restrictions on alignment.
parent 04dd6771
......@@ -1285,15 +1285,6 @@ struct request_queue *scsi_alloc_queue(struct scsi_device *sdev)
blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost));
blk_queue_segment_boundary(q, shost->dma_boundary);
/*
* Set the queue's mask to require a mere 8-byte alignment for
* DMA buffers, rather than the default 512. This shouldn't
* inconvenience any user programs and should be okay for most
* host adapters. A host driver can alter this mask in its
* slave_alloc() or slave_configure() callback if necessary.
*/
blk_queue_dma_alignment(q, (8 - 1));
if (!shost->use_clustering)
clear_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags);
return q;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment