aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2024-05-10 13:23:11 -0700
committerJens Axboe <[email protected]>2024-05-14 07:22:35 -0600
commit2a6751e052ab4789630bc889c814037068723bc1 (patch)
treeb1f6e10a7b7ac650f41245225a68712039fa662e /lib/test_fortify/write_overflow-strncpy-src.c
parent40639e9a0f6e49edd4ef520e6c0e070e1a04a330 (diff)
nbd: Improve the documentation of the locking assumptions
Document locking assumptions with lockdep_assert_held() instead of source code comments. The advantage of lockdep_assert_held() is that it is verified at runtime if lockdep is enabled in the kernel config. Cc: Christoph Hellwig <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Yu Kuai <[email protected]> Cc: Markus Pargmann <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions