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
This commit is contained in:
Vladislav Bolkhovitin
2014-04-15 22:04:54 +00:00
parent 723d233193
commit 914682b8c2
+1
View File
@@ -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;