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