-#if IMPORTANCE_INHERITANCE
- /*
- * Posix type of locks are not inherited by child processes and
- * it maintains one to one mapping between lock and its owner, while
- * Flock type of locks are inherited across forks and it does not
- * maintian any one to one mapping between the lock and the lock
- * owner. Thus importance donation is done only for Posix type of
- * locks.
- */
- if ((lock->lf_flags & F_POSIX) && (block->lf_flags & F_POSIX)) {
- block_task = proc_task((proc_t) block->lf_id);
- boosting_task = proc_task((proc_t) lock->lf_id);
-
- /* Check if current task can donate importance. The
- * check of imp_donor bit is done without holding
- * any lock. The value may change after you read it,
- * but it is ok to boost a task while someone else is
- * unboosting you.
- *
- * TODO: Support live inheritance on file locks.
- */
- if (task_is_importance_donor(boosting_task)) {
- if (block->lf_boosted != LF_BOOSTED &&
- task_is_importance_receiver_type(block_task)) {
- lf_hold_assertion(block_task, block);
- }
- lf_jump_to_queue_head(block, lock);
- }
- }
-#endif /* IMPORTANCE_INHERITANCE */