* [PATCH 2/2]SATA: enable flush non-queueable
@ 2011-04-19 8:44 Shaohua Li
0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2011-04-19 8:44 UTC (permalink / raw)
To: lkml, linux-ide; +Cc: Jens Axboe, Jeff Garzik, Christoph Hellwig, Tejun Heo
Set SATA queue flush non-queueable. Running below test with a AHCI controller and
ext4 filesystem, below patch gives around ~5% speedup.
sysbench --test fileio --file-test-mode rndrw --num-threads 16 \
--file-total-size 2500MB --max-requests 150000 --max-time 3000
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
---
drivers/ata/libata-scsi.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux/drivers/ata/libata-scsi.c
===================================================================
--- linux.orig/drivers/ata/libata-scsi.c 2011-04-19 14:54:37.000000000 +0800
+++ linux/drivers/ata/libata-scsi.c 2011-04-19 14:58:54.000000000 +0800
@@ -3424,7 +3424,9 @@ void ata_scsi_scan_host(struct ata_port
sdev = __scsi_add_device(ap->scsi_host, channel, id, 0,
NULL);
if (!IS_ERR(sdev)) {
+ struct request_queue *q = sdev->request_queue;
dev->sdev = sdev;
+ blk_set_queue_flush_queueable(q, false);
scsi_device_put(sdev);
} else {
dev->sdev = NULL;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-19 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19 8:44 [PATCH 2/2]SATA: enable flush non-queueable Shaohua Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox