X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fosd-ldiskfs%2Fosd_handler.c;h=87a07d42a2e864dec9698fff222c799f5dc03203;hb=0ba690a526be;hp=c4e6d4c760bc0a44e4e5c9600da429038b8e72d1;hpb=e920be6814512b1aa8696ea36d697d3b698c13e8;p=fs%2Flustre-release.git diff --git a/lustre/osd-ldiskfs/osd_handler.c b/lustre/osd-ldiskfs/osd_handler.c index c4e6d4c..87a07d4 100644 --- a/lustre/osd-ldiskfs/osd_handler.c +++ b/lustre/osd-ldiskfs/osd_handler.c @@ -1590,8 +1590,6 @@ static void osd_trans_commit_cb(struct super_block *sb, lu_device_put(lud); th->th_dev = NULL; - lu_context_exit(&th->th_ctx); - lu_context_fini(&th->th_ctx); OBD_FREE_PTR(oh); } @@ -1629,7 +1627,6 @@ static struct thandle *osd_trans_create(const struct lu_env *env, th = &oh->ot_super; th->th_dev = d; th->th_result = 0; - th->th_tags = LCT_TX_HANDLE; oh->ot_credits = 0; INIT_LIST_HEAD(&oh->ot_commit_dcb_list); INIT_LIST_HEAD(&oh->ot_stop_dcb_list); @@ -1763,8 +1760,6 @@ static int osd_trans_start(const struct lu_env *env, struct dt_device *d, if (!IS_ERR(jh)) { oh->ot_handle = jh; LASSERT(oti->oti_txns == 0); - lu_context_init(&th->th_ctx, th->th_tags); - lu_context_enter(&th->th_ctx); lu_device_get(&d->dd_lu_dev); lu_ref_add_at(&d->dd_lu_dev.ld_reference, &oh->ot_dev_link,