summaryrefslogtreecommitdiff
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-02-22 11:03:30 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:19:59 (GMT)
commit0ce2cbb8fc86b080f134f3d976cd87e08ed7ebea (patch)
tree2430c3e867ac493aeb6bde19902b016d5cb5a681 /include/net/dst.h
parent0c3c1a13909e924e0db663aa08daae807be9ec75 (diff)
downloadlinux-fsl-qoriq-0ce2cbb8fc86b080f134f3d976cd87e08ed7ebea.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 'include/net/dst.h')
-rw-r--r--include/net/dst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 3c4c944..a158a07 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -395,7 +395,7 @@ static inline void dst_confirm(struct dst_entry *dst)
static inline int dst_neigh_output(struct dst_entry *dst, struct neighbour *n,
struct sk_buff *skb)
{
- const struct hh_cache *hh;
+ struct hh_cache *hh;
if (dst->pending_confirm) {
unsigned long now = jiffies;