Whamcloud - gitweb
osd: trivial fixes
authornikita <nikita>
Wed, 16 Aug 2006 15:41:11 +0000 (15:41 +0000)
committernikita <nikita>
Wed, 16 Aug 2006 15:41:11 +0000 (15:41 +0000)
lustre/osd/osd_handler.c

index 2fd7c52..f482632 100644 (file)
@@ -1772,9 +1772,6 @@ static int osd_mount(const struct lu_context *ctx,
 static struct lu_device *osd_device_fini(const struct lu_context *ctx,
                                          struct lu_device *d)
 {
-        struct osd_device      *o = osd_dev(d);
-        struct osd_thread_info *info = lu_context_key_get(ctx, &osd_key);
-
         ENTRY;
         RETURN(NULL);
 }
@@ -1821,7 +1818,7 @@ static int osd_process_config(const struct lu_context *ctx,
                 err = osd_mount(ctx, o, cfg);
                 break;
         case LCFG_CLEANUP:
-                osd_shutdown(ctx, o);
+                err = osd_shutdown(ctx, o);
                 break;
         default:
                 err = -ENOTTY;