diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2008-11-12 23:49:48 +0100 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-12-23 17:15:40 +0100 |
commit | d6d7b702a3a1ca50f7ca2bebaa79c80425156bac (patch) | |
tree | 58399f82a48ca2a02bea7bdadc14925858a8017a /fs/dlm/midcomms.c | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jba... (diff) | |
download | linux-d6d7b702a3a1ca50f7ca2bebaa79c80425156bac.tar.xz linux-d6d7b702a3a1ca50f7ca2bebaa79c80425156bac.zip |
dlm: fix up memory allocation flags
Use ls_allocation for memory allocations, which a cluster fs sets to
GFP_NOFS. Use GFP_NOFS for allocations when no lockspace struct is
available. Taking dlm locks needs to avoid calling back into the
cluster fs because write-out can require taking dlm locks.
Cc: Christine Caulfield <ccaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.c')
-rw-r--r-- | fs/dlm/midcomms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c index 07ac709f3ed7..f3396c622aec 100644 --- a/fs/dlm/midcomms.c +++ b/fs/dlm/midcomms.c @@ -112,7 +112,7 @@ int dlm_process_incoming_buffer(int nodeid, const void *base, ordinary messages). */ if (msglen > sizeof(__tmp) && p == &__tmp.p) { - p = kmalloc(dlm_config.ci_buffer_size, GFP_KERNEL); + p = kmalloc(dlm_config.ci_buffer_size, GFP_NOFS); if (p == NULL) return ret; } |