* Hold a prison reference, by incrementing pr_ref. It is generally * an error to hold a prison that does not already have a reference. * A prison record will remain valid as long as it has at least one * reference, and will not be removed as long as either the prison * mutex or the allprison lock is held (allprison_lock may be shared). */
| 2649 | * mutex or the allprison lock is held (allprison_lock may be shared). |
| 2650 | */ |
| 2651 | void |
| 2652 | prison_hold_locked(struct prison *pr) |
| 2653 | { |
| 2654 | |
| 2655 | /* Locking is no longer required. */ |
| 2656 | prison_hold(pr); |
| 2657 | } |
| 2658 | |
| 2659 | void |
| 2660 | prison_hold(struct prison *pr) |
no test coverage detected