From 51086597ce8a7041222ffeadef52d19a570a7c34 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 12 Jul 2002 20:44:28 +0000 Subject: [PATCH] Don't try to auto-load obd module when we are just in the process of registering it. --- lustre/obdclass/genops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 509b2ef..b6403f3 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -68,7 +68,7 @@ int class_register_type(struct obd_ops *ops, char *nm) ENTRY; - if (class_nm_to_type(nm)) { + if (class_search_type(nm)) { CDEBUG(D_IOCTL, "Type %s already registered\n", nm); RETURN(-EEXIST); } -- 1.8.3.1