mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
scst_vdisk: Set REQ_PRIO for SCSI commands marked as head-of-queue
REQ_PRIO requests preempt others in the CFQ I/O scheduler. REQ_META marks metadata requests for blktrace. Reported-by: Lev Vainblat <lev@zadarastorage.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -5972,7 +5972,7 @@ defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
|
||||
#endif
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) || \
|
||||
defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
|
||||
bio->bi_opf |= REQ_META;
|
||||
bio->bi_opf |= REQ_PRIO;
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) || \
|
||||
(defined(RHEL_MAJOR) && \
|
||||
(RHEL_MAJOR -0 > 6 || RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 > 0))
|
||||
|
||||
Reference in New Issue
Block a user