Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-7251 osp: do not assign commit callback to every thandle
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_handler.c
diff --git
a/lustre/osd-ldiskfs/osd_handler.c
b/lustre/osd-ldiskfs/osd_handler.c
index
c4e6d4c
..
87a07d4
100644
(file)
--- 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_device_put(lud);
th->th_dev = NULL;
- lu_context_exit(&th->th_ctx);
- lu_context_fini(&th->th_ctx);
OBD_FREE_PTR(oh);
}
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 = &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);
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);
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,
lu_device_get(&d->dd_lu_dev);
lu_ref_add_at(&d->dd_lu_dev.ld_reference, &oh->ot_dev_link,