summaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2025-09-17 17:36:31 +0200
committerChristian Brauner <brauner@kernel.org>2025-09-19 14:14:55 +0200
commit2ef435a872abc347dc0a92f1c213bb0af3cbf195 (patch)
tree64fe33c027b36fd48c60112b59a70e2c01292bf8 /scripts/gdb
parentcde560f98a9b6e64dd675f6bd10137cc8243a32a (diff)
fs: add might_sleep() annotation to iput() and more
When iput() drops the reference counter to zero, it may sleep via inode_wait_for_writeback(). This happens rarely because it's usually the dcache which evicts inodes, but really iput() should only ever be called in contexts where sleeping is allowed. This annotation allows finding buggy callers. Additionally, this patch annotates a few low-level functions that can call iput() conditionally. Cc: Mateusz Guzik <mjguzik@gmail.com> Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Link: https://lore.kernel.org/20250917153632.2228828-1-max.kellermann@ionos.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions