[B.A.T.M.A.N.] [PATCH v2 1/2] batman-adv: Annotate deleting functions with external lock via lockdep

Marek Lindner mareklindner at neomailbox.ch
Fri Jul 10 10:27:41 CEST 2015


On Sunday, June 21, 2015 14:45:14 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 at narfation.org>
> ---
> v2:
>  * no change
> 
>  net/batman-adv/main.c              | 11 ++++++++---
>  net/batman-adv/multicast.c         | 13 +++++++++++--
>  net/batman-adv/network-coding.c    |  4 ++++
>  net/batman-adv/translation-table.c |  2 ++
>  4 files changed, 25 insertions(+), 5 deletions(-)

Applied in revision 5b95c42.

Thanks,
Marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/attachments/20150710/a9fc365c/attachment-0001.sig>


More information about the B.A.T.M.A.N mailing list