diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2014-06-23 15:50:20 +0200 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-07-18 12:13:12 +0200 |
commit | fe0bbd2986996b9efe3a78bf5a591b0496c7afea (patch) | |
tree | 56d4873a1ae1f42c98c5ad408fdb9feaae33339f /fs/gfs2/bmap.h | |
parent | GFS2: Fix race in glock lru glock disposal (diff) | |
download | linux-fe0bbd2986996b9efe3a78bf5a591b0496c7afea.tar.xz linux-fe0bbd2986996b9efe3a78bf5a591b0496c7afea.zip |
GFS2: Use GFP_NOFS when allocating glocks
Normally GFP_KERNEL is ok here, but there is now a rarely used code path
relating to deallocation of unlinked inodes (in certain corner cases)
which if hit at times of memory shortage can cause recursion while
trying to free memory.
One solution would be to try and move the gfs2_glock_get() call so
that it is no longer called while another glock is held, but that
doesn't look at all easy, so GFP_NOFS is the best solution for the
time being.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.h')
0 files changed, 0 insertions, 0 deletions