• M
    livepatch: force transition to finish · c99a2be7
    Miroslav Benes 提交于
    If a task sleeps in a set of patched functions uninterruptedly, it could
    block the whole transition indefinitely.  Thus it may be useful to clear
    its TIF_PATCH_PENDING to allow the process to finish.
    
    Admin can do that now by writing to force sysfs attribute in livepatch
    sysfs directory. TIF_PATCH_PENDING is then cleared for all tasks and the
    transition can finish successfully.
    
    Important note! Administrator should not use this feature without a
    clearance from a patch distributor. It must be checked that by doing so
    the consistency model guarantees are not violated. Removal (rmmod) of
    patch modules is permanently disabled when the feature is used. It
    cannot be guaranteed there is no task sleeping in such module.
    Signed-off-by: NMiroslav Benes <mbenes@suse.cz>
    Acked-by: NJosh Poimboeuf <jpoimboe@redhat.com>
    Reviewed-by: NPetr Mladek <pmladek@suse.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    c99a2be7
core.c 24.4 KB