1
0
Fork 0
tuned/profiles
Luiz Capitulino de021288a5 realtime-virtual-host: don't delete modprobe file on start()
We create the /etc/modprobe.d/kvm.rt.tuned.conf file at
every boot. However, there's nothing that guarantees that
the kvm module will be loaded after tuned. Indeed, it's
possible to reproduce a race where the kvm module is loaded
before tuned. When this happens, the kvm module will be
loaded with incorrect parameters as the kvm.rt.tuned.conf
file doesn't exist.

The solution to this problem is to create the kvm.rt.tuned.conf
file only if it doesn't exist and delete it when changing
profiles.

Resolves: rhbz#1292117

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>

 profiles/realtime-virtual-host/script.sh | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)
2016-01-11 11:13:08 +01:00
..
atomic-guest Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
atomic-host Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
balanced Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
default Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
desktop Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
desktop-powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
enterprise-storage Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
laptop-ac-powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
laptop-battery-powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
latency-performance Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
network-latency Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
network-throughput Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
oracle Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
realtime Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
realtime-virtual-guest Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
realtime-virtual-host realtime-virtual-host: don't delete modprobe file on start() 2016-01-11 11:13:08 +01:00
sap-hana Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
sap-hana-vmware Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
sap-netweaver Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
server-powersave Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
spindown-disk Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
throughput-performance Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
virtual-guest Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
virtual-host Added support for 'summary' and 'description' of profiles 2016-01-05 11:28:25 +01:00
functions plugin_script: stop action gets hint why it is called 2016-01-08 18:29:52 +01:00