diff options
author | Jan Kara <jack@suse.cz> | 2010-08-24 12:28:03 (GMT) |
---|---|---|
committer | Tao Ma <tao.ma@oracle.com> | 2010-09-08 06:25:57 (GMT) |
commit | 9b4c0ff32ccd87ab52d4c5bd0a0536febce11370 (patch) | |
tree | b9e77d2798eac9051353b29f22e9315d9d9e13b5 /fs/eventfd.c | |
parent | b2b6ebf5f740e015b2155343958f067e594323ea (diff) | |
download | linux-fsl-qoriq-9b4c0ff32ccd87ab52d4c5bd0a0536febce11370.tar.xz |
ocfs2: Fix deadlock when allocating page
We cannot call grab_cache_page() when holding filesystem locks or with
a transaction started as grab_cache_page() calls page allocation with
GFP_KERNEL flag and thus page reclaim can recurse back into the filesystem
causing deadlocks or various assertion failures. We have to use
find_or_create_page() instead and pass it GFP_NOFS as we do with other
allocations.
Acked-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/eventfd.c')
0 files changed, 0 insertions, 0 deletions