From: yury Date: Sun, 22 Oct 2006 18:50:12 +0000 (+0000) Subject: - a bit more sanity checks X-Git-Tag: v1_8_0_110~486^2~390 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=84798f34223976a581444aae5aad8117599baa8a;p=fs%2Flustre-release.git - a bit more sanity checks --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 4e6a2e7..32ee805 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -1559,6 +1559,7 @@ int mdt_object_lock(struct mdt_thread_info *info, struct mdt_object *o, LASSERT(!lustre_handle_is_used(&lh->mlh_reg_lh)); LASSERT(!lustre_handle_is_used(&lh->mlh_pdo_lh)); LASSERT(lh->mlh_reg_mode != LCK_MINMODE); + LASSERT(lh->mlh_type != MDT_NUL_LOCK); if (mdt_object_exists(o) < 0) { if (locality == MDT_CROSS_LOCK) { @@ -1921,7 +1922,7 @@ static int mdt_req_handle(struct mdt_thread_info *info, void mdt_lock_handle_init(struct mdt_lock_handle *lh) { - lh->mlh_type = MDT_PDO_LOCK; + lh->mlh_type = MDT_NUL_LOCK; lh->mlh_reg_lh.cookie = 0ull; lh->mlh_reg_mode = LCK_MINMODE; lh->mlh_pdo_lh.cookie = 0ull;