Skip to content

Commit

Permalink
don't let o3x threads have importance > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rottegift committed Apr 11, 2021
1 parent e0d5ddd commit e2f55ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/os/macos/spl/spl-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ spl_thread_create(
policy.importance = pri - 81;

/* don't let ANYTHING run as high as networking & GPU */
if (policy.importance > 1)
policy.importance = 1;
if (policy.importance > 0)
policy.importance = 0;
else if (policy.importance < (-11))
policy.importance = -11;

Expand Down

0 comments on commit e2f55ec

Please sign in to comment.