ctdb-locking: Reset real-time priority in lock helper
authorAmitay Isaacs <amitay@gmail.com>
Thu, 17 Nov 2016 05:10:51 +0000 (16:10 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 18 Nov 2016 09:18:27 +0000 (10:18 +0100)
commit6c6d63c04497fdfdbe665508f2a503f2392dc526
tree9f00c852867d0b71ea5971168a3d63fa6c7be1ca
parent318a8ec6bb3bf81efa9985f6248840f9ba2e4222
ctdb-locking: Reset real-time priority in lock helper

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12392

Earlier we were relying on SCHED_RESET_ON_FORK to reset the priority of lock
helper processes.  Since SCHED_RESET_ON_FORK support has been removed, the
scheduling priority of child processes created using vfork() need to be reset
explicitly in the helper processes.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Nov 18 10:18:27 CET 2016 on sn-devel-144
ctdb/server/ctdb_lock_helper.c