diff options
author | Christoph Hellwig <hch@lst.de> | 2025-03-20 08:52:14 +0100 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2025-04-14 10:24:30 +0200 |
commit | a1a56f541a8f634007de4bcb45aa3eaf803154a8 (patch) | |
tree | 63f3fa9c9ca6dd8b306dbdd58e9b8260b42464ba | |
parent | b73e05281cd9e37b5525641ca6f4544867372533 (diff) |
xfs: mark xfs_buf_free as might_sleep()
xfs_buf_free can call vunmap, which can sleep. The vunmap path is an
unlikely one, so add might_sleep to ensure calling xfs_buf_free from
atomic context gets caught more easily.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r-- | fs/xfs/xfs_buf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 8e7f1b324b3b..1a2b3f06fa71 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -105,6 +105,7 @@ xfs_buf_free( { unsigned int size = BBTOB(bp->b_length); + might_sleep(); trace_xfs_buf_free(bp, _RET_IP_); ASSERT(list_empty(&bp->b_lru)); |