block: Check locking assumptions at runtime
authorBart Van Assche <[email protected]>
Tue, 20 Jun 2017 18:15:45 +0000 (11:15 -0700)
committerJens Axboe <[email protected]>
Wed, 21 Jun 2017 01:27:14 +0000 (19:27 -0600)
commit2fff8a924d4c614b5a17b2a236a2cf09aa51af5f
tree46f7b27ff3593ddeabaadd0032e5449825995fde
parent9e0c829906b9aa1e7ad84689f2bcd56457bdb417
block: Check locking assumptions at runtime

Instead of documenting the locking assumptions of most block layer
functions as a comment, use lockdep_assert_held() to verify locking
assumptions at runtime.

Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Omar Sandoval <[email protected]>
Cc: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/blk-core.c
block/blk-flush.c
block/blk-merge.c
block/blk-tag.c
block/blk-timeout.c