Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christoph Hellwig and committed by
Carlos Maiolino
a1a56f54 b73e0528

+1
+1
fs/xfs/xfs_buf.c
··· 105 105 { 106 106 unsigned int size = BBTOB(bp->b_length); 107 107 108 + might_sleep(); 108 109 trace_xfs_buf_free(bp, _RET_IP_); 109 110 110 111 ASSERT(list_empty(&bp->b_lru));