From: Jian Yu Date: Tue, 2 Nov 2010 07:05:29 +0000 (+0800) Subject: b=23289 remove mc_waitq X-Git-Tag: 2.0.55.0~16 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=666f6ae30ed7f0c5015f659cd274685a08bd27bc b=23289 remove mc_waitq Remove legacy. o=liang i=mikhail.pershin i=di.wang --- diff --git a/lustre/mdd/mdd_device.c b/lustre/mdd/mdd_device.c index 28d129c..e3f8889 100644 --- a/lustre/mdd/mdd_device.c +++ b/lustre/mdd/mdd_device.c @@ -241,7 +241,6 @@ static int mdd_changelog_init(const struct lu_env *env, struct mdd_device *mdd) mdd->mdd_cl.mc_index = 0; cfs_spin_lock_init(&mdd->mdd_cl.mc_lock); - cfs_waitq_init(&mdd->mdd_cl.mc_waitq); mdd->mdd_cl.mc_starttime = cfs_time_current_64(); mdd->mdd_cl.mc_flags = 0; /* off by default */ mdd->mdd_cl.mc_mask = CHANGELOG_DEFMASK; @@ -330,8 +329,6 @@ int mdd_changelog_llog_write(struct mdd_device *mdd, rc = llog_add(ctxt, &rec->cr_hdr, NULL, NULL, 0); llog_ctxt_put(ctxt); - cfs_waitq_signal(&mdd->mdd_cl.mc_waitq); - return rc; } diff --git a/lustre/mdd/mdd_internal.h b/lustre/mdd/mdd_internal.h index 246951e..8e23458 100644 --- a/lustre/mdd/mdd_internal.h +++ b/lustre/mdd/mdd_internal.h @@ -107,7 +107,6 @@ struct mdd_txn_op_descr { struct mdd_changelog { cfs_spinlock_t mc_lock; /* for index */ - cfs_waitq_t mc_waitq; int mc_flags; int mc_mask; __u64 mc_index;