Skip to contentSkip to conversation

DECnet route RCU fix

PATCH In review Patrick Caulfield 1 participant 2 messages Nov 4, 2004 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DECnet route RCU fix

This patch fixes a missing _bh in the 23 August locking update. Without this any attempt to read from /proc/net/decnet_cache causes a "scheduling while atomic" crash.

===== net/decnet/dn_route.c 1.27 vs edited =====

net/decnet/dn_route.c +1 -1
@@ -1676,7 +1676,7 @@
 		rt = dn_rt_hash_table[s->bucket].chain;
 		if (rt)
 			break;
-		rcu_read_unlock();
+		rcu_read_unlock_bh();
 	}
 	return rt;
 }
#1 lore raw

I should have made it clear that those last two DECnet patches were against the latest 2.6 kernel.

Signature · 1 line
patrick