[lkml]   [2009]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/2] sysctl: lockdep support.

The problem: There is a class of deadlocks that we currently
have in the kernel that lockdep does not recognize.

In particular with the network stack we can have:

rtnl_lock(); use_table();
unregister_netdevice(); rtnl_lock();
unregister_sysctl_table(); ....
wait_for_completion(); rtnl_lock();
.... unuse_table()
rtnl_unlock(); complete();

Where we never make it to the lines labled ....

My patch following patches treats the sysctl use count as a read/writer
lock for purposes of lockdep.

The code works but I'm not certain I have plugged into lockdep quite


 \ /
  Last update: 2009-03-21 08:43    [W:0.053 / U:3.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site