From 914682b8c25292f426232139dfef62a46fd8ea75 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 15 Apr 2014 22:04:54 +0000 Subject: [PATCH] Make HEAD OF QUEUE requests sync Since the block layer has no way to specify bio as HQ, there's no choice, but to use every measure to approximate it as close as possible. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5416 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index a7fb1b298..08492ece0 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -4263,6 +4263,7 @@ static void blockio_exec_rw(struct vdisk_cmd_params *p, bool write, bool fua) bio->bi_rw |= REQ_FUA; if (cmd->queue_type == SCST_CMD_QUEUE_HEAD_OF_QUEUE) { + bio->bi_rw |= REQ_SYNC; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) || \ defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 6 bio->bi_rw |= REQ_META;