From: Jens Axboe Date: Sun, 29 Jan 2006 19:57:33 +0000 (+0100) Subject: [PATCH] SCSI: turn off ordered flush barriers X-Git-Tag: v2.6.15.4~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3edcc7870d12de93ba5ae1ca5b5d9f43886ac0ea;p=thirdparty%2Fkernel%2Fstable.git [PATCH] SCSI: turn off ordered flush barriers Turn off ordered flush barriers for SCSI driver, since the SCSI barrier code has a command leak. Signed-off-by: Jens Axboe Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index dc249cb970ea4..1aa8b40d5626b 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1534,11 +1534,6 @@ struct request_queue *scsi_alloc_queue(struct scsi_device *sdev) */ if (shost->ordered_tag) blk_queue_ordered(q, QUEUE_ORDERED_TAG); - else if (shost->ordered_flush) { - blk_queue_ordered(q, QUEUE_ORDERED_FLUSH); - q->prepare_flush_fn = scsi_prepare_flush_fn; - q->end_flush_fn = scsi_end_flush_fn; - } if (!shost->use_clustering) clear_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags);