From 9c563fe3b8c21597ccc34b6f9ae373c8c59e0571 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Mon, 5 Jan 2004 18:52:14 +0000 Subject: [PATCH] Don't use SLAB_KERNEL (GFP_KERNEL) allocations for locks and resources. This is the bug that started it all, and was fixed only in b_llnl_prod... b=1933 r=zab --- lustre/ldlm/ldlm_lock.c | 2 +- lustre/ldlm/ldlm_resource.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index c1d09231e8..14b29713b7 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -238,7 +238,7 @@ static struct ldlm_lock *ldlm_lock_new(struct ldlm_lock *parent, if (resource == NULL) LBUG(); - OBD_SLAB_ALLOC(lock, ldlm_lock_slab, SLAB_KERNEL, sizeof(*lock)); + OBD_SLAB_ALLOC(lock, ldlm_lock_slab, SLAB_NOFS, sizeof(*lock)); if (lock == NULL) RETURN(NULL); diff --git a/lustre/ldlm/ldlm_resource.c b/lustre/ldlm/ldlm_resource.c index ab36d7157a..0c0b51fc3e 100644 --- a/lustre/ldlm/ldlm_resource.c +++ b/lustre/ldlm/ldlm_resource.c @@ -419,7 +419,7 @@ static struct ldlm_resource *ldlm_resource_new(void) { struct ldlm_resource *res; - OBD_SLAB_ALLOC(res, ldlm_resource_slab, SLAB_KERNEL, sizeof *res); + OBD_SLAB_ALLOC(res, ldlm_resource_slab, SLAB_NOFS, sizeof *res); if (res == NULL) { LBUG(); return NULL; -- GitLab