Whamcloud - gitweb
LU-11213 mdc: add async statfs 59/34359/16
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 15 Feb 2019 11:12:34 +0000 (19:12 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Jun 2019 04:08:39 +0000 (04:08 +0000)
commit7f412954ad38b540ccbbf241b25c594faf5ca79d
treef172bc0af0e66535928b5eb99ef87157cfc3a6d5
parent55ca00c3d1cd8635258ccbda27ee3f0f9b2966a8
LU-11213 mdc: add async statfs

Add obd_statfs_async() interface for MDC, the statfs request
is sent by ptlrpcd.

This statfs result is for each MDT separately, it's different
from current cached statfs which is aggregated statfs of all
MDTs.

The max age of statfs result is decided by lmv_desc.ld_qos_maxage.

It will deactivate MDC on failure, and activate MDC on success.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I8e1bd104fb60ff81e2eb26e49a89a5baf8050d47
Reviewed-on: https://review.whamcloud.com/34359
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/lmv/lmv_internal.h
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/osc/osc_request.c