Add event-related mutex assertions 57/12757/5
authorBenjamin Kaduk <kaduk@mit.edu>
Wed, 1 Nov 2017 00:49:09 +0000 (19:49 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 23 Nov 2017 01:21:44 +0000 (20:21 -0500)
commita7a3108e602c83176c5578c9f28b6312f71aba78
tree1c0a7f52d5a3b134a1c14cd9a5ffbc3c73bd8d4f
parent304d758983b499dc568d6ca57b6e92df24b69de8
Add event-related mutex assertions

In utility functions that access fields of type struct rxevent *,
assert that the appropriate lock is held for the access in question.

These assertions are only compiled in when built with -DOPR_DEBUG_LOCKS,
which can be enbled by --debug-locks at configure time.

Change-Id: I16885a4d37a0f094f0d365c54e8157ed92070c69
Reviewed-on: https://gerrit.openafs.org/12757
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/rx/rx.c