2004-11-04 12:11:06

by Patrick Caulfield

[permalink] [raw]
Subject: [PATCH] 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.


Signed-off-by: Patrick Caulfield <[email protected]>

===== net/decnet/dn_route.c 1.27 vs edited =====
--- 1.27/net/decnet/dn_route.c 2004-10-28 08:39:57 +01:00
+++ edited/net/decnet/dn_route.c 2004-11-04 11:59:37 +00:00
@@ -1676,7 +1676,7 @@
rt = dn_rt_hash_table[s->bucket].chain;
if (rt)
break;
- rcu_read_unlock();
+ rcu_read_unlock_bh();
}
return rt;
}


2004-11-04 12:37:33

by Patrick Caulfield

[permalink] [raw]
Subject: Re: [PATCH] DECnet route RCU fix

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

patrick