From: Di Wang Date: Thu, 25 Feb 2016 14:15:04 +0000 (-0500) Subject: LU-7815 mdt: pinger should not evict MDT-MDT export X-Git-Tag: 2.8.51~57 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a3e6b142c074df8ef20cbf3a9d9f7687c9ed9a5f 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 --- 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);