Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179685
b: refs/heads/master
c: 875feb6
h: refs/heads/master
i:
  179683: b48386a
v: v3
  • Loading branch information
Divyesh Shah authored and Jens Axboe committed Jan 11, 2010
1 parent 465a3b3 commit 49a456f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7af92f8754b87bc78cbfd447d5f4096b25c46682
refs/heads/master: 875feb63b9567442be73efbcc9a8470e376d6423
6 changes: 6 additions & 0 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3076,6 +3076,12 @@ cfq_should_preempt(struct cfq_data *cfqd, struct cfq_queue *new_cfqq,
if (cfq_class_idle(cfqq))
return true;

/*
* Don't allow a non-RT request to preempt an ongoing RT cfqq timeslice.
*/
if (cfq_class_rt(cfqq) && !cfq_class_rt(new_cfqq))
return false;

/*
* if the new request is sync, but the currently running queue is
* not, let the sync request have priority.
Expand Down

0 comments on commit 49a456f

Please sign in to comment.