On 20/06/15 12:13, Sven Eckelmann wrote:
Functions which use (h)list_del* are requiring correct locking when they operate on global lists. Most of the time the search in the list and the delete are done in the same function. All other cases should have it visible that they require a special lock to avoid race conditions.
Lockdep asserts can be used to check these problem during runtime when the lockdep functionality is enabled.
Signed-off-by: Sven Eckelmann sven@narfation.org
Thanks for this patch Sven! This should reduce the likelihood of having of making mistakes in the future (I hope!)
Acked-by: Antonio Quartulli antonio@meshcoding.com