]> git.proxmox.com Git - mirror_spl.git/commit
Invert minclsyspri and maxclsyspri
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Jul 2015 17:32:55 +0000 (10:32 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2015 20:59:03 +0000 (13:59 -0700)
commit9dc5ffbec845ec9c4d9b109c85569345c0c11766
treed8d22b47a7b4845eb327850264da18807a5cc8df
parent4699d76d19f1ff4a59c16c10b2aedab6f5054a73
Invert minclsyspri and maxclsyspri

On Linux the meaning of a processes priority is inverted with respect
to illumos.  High values on Linux indicate a _low_ priority while high
value on illumos indicate a _high_ priority.

In order to preserve the logical meaning of the minclsyspri and
maxclsyspri macros when they are used by the illumos wrapper functions
their values have been inverted.  This way when changes are merged
from upstream illumos we won't need to remember to invert the macro.
It could also lead to confusion.

Note this change also reverts some of the priorities changes in prior
commit 62aa81a.  The rational is as follows:

spl_kmem_cache    - High priority may result in blocked memory allocs
spl_system_taskq  - May perform I/O for file backed VDEVs
spl_dynamic_taskq - New taskq threads should be spawned promptly

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Issue zfsonlinux/zfs#3607
include/sys/sysmacros.h
include/sys/taskq.h
module/spl/spl-kmem-cache.c
module/spl/spl-taskq.c