mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user