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 <bart.vanassche@sandisk.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> Cc: Omar Sandoval <osandov@fb.com> Cc: Ming Lei <ming.lei@redhat.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/blk-core.c 47 additions, 24 deletionsblock/blk-core.c
- block/blk-flush.c 5 additions, 3 deletionsblock/blk-flush.c
- block/blk-merge.c 3 additions, 0 deletionsblock/blk-merge.c
- block/blk-tag.c 6 additions, 9 deletionsblock/blk-tag.c
- block/blk-timeout.c 3 additions, 1 deletionblock/blk-timeout.c
Please register or sign in to comment