Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab923031 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent b98c95af
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -769,7 +769,7 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state)
	} else {
	} else {
		spin_unlock(&gl->gl_spin);
		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)
		if (!new_gh)
			return;
			return;
		set_bit(HIF_DEMOTE, &new_gh->gh_iflags);
		set_bit(HIF_DEMOTE, &new_gh->gh_iflags);