diff options
author | Miroslav Benes <mbenes@suse.cz> | 2019-01-15 17:45:06 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2019-01-16 22:09:09 +0100 |
commit | cba82dea30613346cf9a0532a41fc118bc3263af (patch) | |
tree | c7b4182b5f7bc83b646eae084d4a6646f3da874b /fs/stat.c | |
parent | a2818ee4dce575b299d8a7f46b393bc2b02ef1f4 (diff) | |
download | linux-cba82dea30613346cf9a0532a41fc118bc3263af.tar.bz2 |
livepatch: Send a fake signal periodically
An administrator may send a fake signal to all remaining blocking tasks
of a running transition by writing to
/sys/kernel/livepatch/<patch>/signal attribute. Let's do it
automatically after 15 seconds. The timeout is chosen deliberately. It
gives the tasks enough time to transition themselves.
Theoretically, sending it once should be more than enough. However,
every task must get outside of a patched function to be successfully
transitioned. It could prove not to be simple and resending could be
helpful in that case.
A new workqueue job could be a cleaner solution to achieve it, but it
could also introduce deadlocks and cause more headaches with
synchronization and cancelling.
[jkosina@suse.cz: removed added newline]
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions