diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c
index 7d4df5f4b7ecfac0e1f3735beb65649b6ddf84bc..715cda420602775b5c4de4396d3125ab461de603 100644
--- a/lustre/mds/handler.c
+++ b/lustre/mds/handler.c
@@ -517,8 +517,6 @@ static int mds_destroy_export(struct obd_export *export)
         OBD_FREE(logcookies, cookie_sz);
         OBD_FREE(lmm, lmm_sz);
 
-        spin_unlock(&med->med_open_lock);
-
         pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
         mds_client_free(export);