1
0
Fork 0
tuned/tuned/plugins
Ondřej Lysoněk f3f05e426f scheduler: Prevent a traceback
Add a new method for restoring original CPU affinity of processes
_restore_ps_affinity() and call that in _instance_init() instead of
_instance_unapply_static(). _instance_unapply_static() touches
instance._terminate, which does not yet exist at that point
(_instance_init always gets a fresh instance object).

The reason this was not a problem in the past is that the true branch
of "if len(instance._scheduler_original) > 0:" was never executed,
because instance._scheduler_original was never correctly saved
to storage. The next commit in this patch series fixes that.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-06-04 12:48:06 +02:00
..
instance An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
__init__.py An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
base.py cpu: Support specifying alternative EPB values 2018-05-14 09:45:54 +02:00
decorators.py plugin commands: add numeric priority to enforce execution order 2013-01-23 18:49:45 +01:00
exceptions.py units manager: handle NotSupportedPluginException 2013-01-28 16:21:12 +01:00
hotplug.py An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
plugin_audio.py An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
plugin_bootloader.py bootloader: added check for petitboot 2018-05-16 15:57:47 +02:00
plugin_cpu.py cpu: Support specifying alternative EPB values 2018-05-14 09:45:54 +02:00
plugin_disk.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_eeepc_she.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_modules.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_mounts.py Pass universal_newlines = True to Popen() 2018-01-14 15:13:29 +01:00
plugin_net.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_scheduler.py scheduler: Prevent a traceback 2018-06-04 12:48:06 +02:00
plugin_script.py script: show stderr output in the log 2018-01-19 16:13:04 +01:00
plugin_scsi_host.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_selinux.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_sysctl.py sysctl: support assignment modifiers as other plugins do 2018-03-28 16:06:48 +02:00
plugin_sysfs.py Fix verifying cpumask on systems with more than 32 cores 2018-05-01 14:51:32 +02:00
plugin_systemd.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00
plugin_usb.py An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
plugin_video.py An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
plugin_vm.py An attempt to port Tuned to python3 and keeping it python2 compatible 2017-12-21 10:20:13 +01:00
repository.py Fix calling methods of parent classes 2018-01-14 15:13:27 +01:00