X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=6d7fd09bf722170cff5f0d3b14a0eed51c91c094;hp=ab9b24c8d419bbc368ddcd940011b9b122277d8a;hb=4f5830f769f9cc9bacfcdfee9de5962324fb5c81;hpb=bdf591ff17e8d36e68c4eb49a2421cb0e79446c0 diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index ab9b24c..6d7fd09 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -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)