From: adilger Date: Fri, 12 Jul 2002 20:44:28 +0000 (+0000) Subject: Don't try to auto-load obd module when we are just in the process of X-Git-Tag: v1_7_100~5324 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=51086597ce8a7041222ffeadef52d19a570a7c34;p=fs%2Flustre-release.git Don't try to auto-load obd module when we are just in the process of registering it. --- 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); }