diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-02-22 11:03:30 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-04-04 22:09:34 (GMT) |
commit | ce9c0cba2799ec2657231ae7b5e86f154b9d2a73 (patch) | |
tree | 80eec90b64c3521e40776ff8c29ddfaf355c100d /kernel | |
parent | 5a5757b3d4207a77408c336e0bcf4ec29bbafe0b (diff) | |
download | linux-fsl-qoriq-ce9c0cba2799ec2657231ae7b5e86f154b9d2a73.tar.xz |
seqlock: Prevent rt starvation
If a low prio writer gets preempted while holding the seqlock write
locked, a high prio reader spins forever on RT.
To prevent this let the reader grab the spinlock, so it blocks and
eventually boosts the writer. This way the writer can proceed and
endless spinning is prevented.
For seqcount writers we disable preemption over the update code
path. Thaanks to Al Viro for distangling some VFS code to make that
possible.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable-rt@vger.kernel.org
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions