From 84798f34223976a581444aae5aad8117599baa8a Mon Sep 17 00:00:00 2001 From: yury Date: Sun, 22 Oct 2006 18:50:12 +0000 Subject: [PATCH] - a bit more sanity checks --- lustre/mdt/mdt_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.8.3.1