]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix missing KM_NOFS tags to keep lockdep happy
authorDave Chinner <dchinner@redhat.com>
Sun, 19 May 2013 23:51:12 +0000 (09:51 +1000)
committerBen Myers <bpm@sgi.com>
Fri, 24 May 2013 21:29:15 +0000 (16:29 -0500)
commit2c32a6cc24fb18235437bae1987da58504699c00
treebfc43422ce84648acd7e908080b58e5166928e17
parent134daa39b6d3007918813f9679ea2fde5d4881fe
xfs: fix missing KM_NOFS tags to keep lockdep happy

There are several places where we use KM_SLEEP allocation contexts
and use the fact that they are called from transaction context to
add KM_NOFS where appropriate. Unfortunately, there are several
places where the code makes this assumption but can be called from
outside transaction context but with filesystem locks held. These
places need explicit KM_NOFS annotations to avoid lockdep
complaining about reclaim contexts.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
(cherry picked from commit ac14876cf9255175bf3bdad645bf8aa2b8fb2d7c)
fs/xfs/xfs_buf.c
fs/xfs/xfs_da_btree.c
fs/xfs/xfs_dir2_leaf.c
fs/xfs/xfs_log_cil.c