Boost priority of HEAD OF QUEUE requests

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4799 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-03-16 01:18:32 +00:00
parent 3a84cb7baf
commit a1fde6a871

View File

@@ -3853,6 +3853,15 @@ static void blockio_exec_rw(struct vdisk_cmd_params *p, bool write, bool fua)
if (fua)
bio->bi_rw |= REQ_FUA;
if (cmd->queue_type == SCST_CMD_QUEUE_HEAD_OF_QUEUE) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
bio->bi_rw |= REQ_META;
bio->bi_rw |= REQ_PRIO;
#else
bio->bi_rw |= BIO_RW_META;
#endif
}
if (!hbio)
hbio = tbio = bio;
else