]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] SCSI: turn off ordered flush barriers
authorJens Axboe <axboe@suse.de>
Sun, 29 Jan 2006 19:57:33 +0000 (20:57 +0100)
committerChris Wright <chrisw@sous-sol.org>
Fri, 10 Feb 2006 07:20:04 +0000 (23:20 -0800)
Turn off ordered flush barriers for SCSI driver, since the SCSI barrier
code has a command leak.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_lib.c

index dc249cb970ea49589d5f351585695a560a437c0b..1aa8b40d5626b5c4fd0420556440b0f8aa69c281 100644 (file)
@@ -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);