summaryrefslogtreecommitdiff
path: root/fs/ocfs2/dlmglue.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-11-17 12:02:43 +0100
committerThomas Gleixner <tglx@linutronix.de>2009-11-17 12:31:28 +0100
commit05d5f5080a2e3fbbc0f762875b66721588f5e251 (patch)
tree332eb77b70a6d8af672c29c6d0b63d5c80c41879 /fs/ocfs2/dlmglue.c
parent05d10b6e792d6fff7e70acd95e9c734ce20bf144 (diff)
downloadlwn-05d5f5080a2e3fbbc0f762875b66721588f5e251.tar.gz
lwn-05d5f5080a2e3fbbc0f762875b66721588f5e251.zip
net: at91_ether: Make mdio protection -rt safe
Neither the phy interrupt nor the timer callback which updates the link status in absense of a phy interrupt are taking lp->lock which serializes the MDIO access. This works on mainline as at91 is an UP machine. On preempt-rt the timer callback can run even in the spin_lock_irq(&lp->lock) protected code pathes because spin_lock_irq is neither disabling interrupts nor disabling preemption. Fix this by adding proper locking to at91ether_phy_interrupt() and at91_check_ether() which serializes the access on -rt. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
0 files changed, 0 insertions, 0 deletions