]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: mark xfs_buf_free as might_sleep()
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Mar 2025 07:52:14 +0000 (08:52 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 14 Apr 2025 08:24:30 +0000 (10:24 +0200)
commita1a56f541a8f634007de4bcb45aa3eaf803154a8
tree63f3fa9c9ca6dd8b306dbdd58e9b8260b42464ba
parentb73e05281cd9e37b5525641ca6f4544867372533
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>
fs/xfs/xfs_buf.c