[PATCH] DECnet route RCU fix

From: Patrick Caulfield
Date: Thu Nov 04 2004 - 07:14:38 EST


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 <patrick@xxxxxxxxxxxxxxx>

===== 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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/