From 6165f883ecafb06abf734f6c0069e03789572852 Mon Sep 17 00:00:00 2001 From: Di Wang Date: Thu, 25 Feb 2016 09:15:04 -0500 Subject: [PATCH] LU-7815 mdt: pinger should not evict MDT-MDT export MDT-MDT export should not be added obd_chained_timed list, to avoid being evicted by evict pinger thread. Signed-off-by: Di Wang Change-Id: I99ae008905b3654a9ddc66ec60c27613f9930592 Reviewed-on: http://review.whamcloud.com/18676 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/mdt/mdt_handler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 9ffd9c7..82d6623 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -5210,6 +5210,13 @@ out: *exp = NULL; } else { *exp = lexp; + /* Because we do not want this export to be evicted by pinger, + * let's not add this export to the timed chain list. */ + if (data->ocd_connect_flags & OBD_CONNECT_MDS_MDS) { + spin_lock(&lexp->exp_obd->obd_dev_lock); + list_del_init(&lexp->exp_obd_chain_timed); + spin_unlock(&lexp->exp_obd->obd_dev_lock); + } } RETURN(rc); -- 1.8.3.1