Whamcloud - gitweb
LU-3467 target: move OUT to the unified target code
[fs/lustre-release.git] / lustre / ofd / ofd_dev.c
index ab9b24c..6d7fd09 100644 (file)
@@ -610,6 +610,17 @@ out_free:
        return rc;
 }
 
+static struct tgt_opc_slice ofd_common_slice[] = {
+       {
+               .tos_opc_start = UPDATE_OBJ,
+               .tos_opc_end   = UPDATE_LAST_OPC,
+               .tos_hs        = tgt_out_handlers
+       },
+       {
+               .tos_hs         = NULL
+       }
+};
+
 static int ofd_init0(const struct lu_env *env, struct ofd_device *m,
                     struct lu_device_type *ldt, struct lustre_cfg *cfg)
 {
@@ -748,7 +759,7 @@ static int ofd_init0(const struct lu_env *env, struct ofd_device *m,
        m->ofd_grant_ratio =
                ofd_grant_ratio_conv(m->ofd_dt_conf.ddp_grant_reserved);
 
-       rc = tgt_init(env, &m->ofd_lut, obd, m->ofd_osd, NULL,
+       rc = tgt_init(env, &m->ofd_lut, obd, m->ofd_osd, ofd_common_slice,
                      OBD_FAIL_OST_ALL_REQUEST_NET,
                      OBD_FAIL_OST_ALL_REPLY_NET);
        if (rc)