Whamcloud - gitweb
b=13099
authorqian <qian>
Thu, 18 Oct 2007 01:27:51 +0000 (01:27 +0000)
committerqian <qian>
Thu, 18 Oct 2007 01:27:51 +0000 (01:27 +0000)
i=adilger,shadow

lustre/lov/lov_obd.c

index 31569ca..66c2ece 100644 (file)
@@ -1583,8 +1583,10 @@ static int lov_brw_async(int cmd, struct obd_export *exp,
         }
         LASSERT(rc == 0);
         LASSERT(set->set_interpret == NULL);
-        set->set_interpret = (set_interpreter_func)lov_brw_interpret;
-        set->set_arg = (void *)lovset;
+        LASSERT(set->set_arg == NULL);
+        rc = ptlrpc_set_add_cb(set, lov_brw_interpret, lovset);
+        if (rc)
+                GOTO(out, rc);
 
         RETURN(rc);
 out: