[GFS2] Fix memory allocation in glock.c [9/9]



From 70411bdbedb9a2726cacd5c36879b78037153782 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <swhiteho@xxxxxxxxxx>
Date: Wed, 15 Nov 2006 15:17:03 -0500
Subject: [PATCH] [GFS2] Fix memory allocation in glock.c

Change from GFP_KERNEL to GFP_NOFS as this was causing a
slow down when trying to push inodes from cache.

Signed-off-by: Steven Whitehouse <swhiteho@xxxxxxxxxx>
---
fs/gfs2/glock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 78fe0fa..e94e7c9 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -769,7 +769,7 @@ restart:
} else {
spin_unlock(&gl->gl_spin);

- new_gh = gfs2_holder_get(gl, state, LM_FLAG_TRY, GFP_KERNEL);
+ new_gh = gfs2_holder_get(gl, state, LM_FLAG_TRY, GFP_NOFS);
if (!new_gh)
return;
set_bit(HIF_DEMOTE, &new_gh->gh_iflags);
--
1.4.1



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [GFS2] Fix memory allocation in glock.c [47/70]
    ... Fix memory allocation in glock.c ... Change from GFP_KERNEL to GFP_NOFS as this was causing a ... slow down when trying to push inodes from cache. ...
    (Linux-Kernel)
  • Re: beginning with ML
    ... On a 64-bit target, MLton uses 64-bit pointers, which ... causing both more cache ... misses and more time spent doing GC. ...
    (comp.lang.functional)
  • Re: sticky website url showing at top of printed page...
    ... but one from a previously visited site does What is causing this? ... have cleared the cache, etc. but a url from a previously visited page DOES ... poster of this reply. ... Robert Aldwinckle ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: [opensuse] Firefox crashes?
    ... and see if this clears the problem. ... have gone to the same site - or similarly configured sites - and Cached a badly coded page which is then causing the problem everytime they go to that site. ... If you read the mozilla.org Firefox newsgroup you will find clearing the Cache is a reasonably common way of fixing problems. ... a bug in the cache handling in 2.0.0.2pre could have been causing a problem. ...
    (SuSE)