From: wang di Date: Mon, 3 Jun 2013 13:40:41 +0000 (+0800) Subject: staging/lustre/utils: missing setting echo seq for getattr/setattr X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f4055035edbf2a81c1e78b8b7501f059d5f603b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging/lustre/utils: missing setting echo seq for getattr/setattr It should set echo seq before do echo getattr/setattr, otherwise echo_client will regard it as the object with MDT0 sequence. [picked echo client part for upstream kernel submission] Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3267 Lustre-change: http://review.whamcloud.com/6263 Signed-off-by: wang di Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Signed-off-by: Peng Tao Signed-off-by: Andreas Dilger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c index 0545d1666841..bc58789c3799 100644 --- a/drivers/staging/lustre/lustre/obdecho/echo_client.c +++ b/drivers/staging/lustre/lustre/obdecho/echo_client.c @@ -1081,8 +1081,9 @@ static struct echo_object *cl_echo_object_find(struct echo_device *d, LASSERT(lsmp); lsm = *lsmp; LASSERT(lsm); - LASSERT(ostid_id(&lsm->lsm_oi) != 0); - LASSERT(ostid_seq(&lsm->lsm_oi) == FID_SEQ_ECHO); + LASSERTF(ostid_id(&lsm->lsm_oi) != 0, DOSTID"\n", POSTID(&lsm->lsm_oi)); + LASSERTF(ostid_seq(&lsm->lsm_oi) == FID_SEQ_ECHO, DOSTID"\n", + POSTID(&lsm->lsm_oi)); /* Never return an object if the obd is to be freed. */ if (echo_dev2cl(d)->cd_lu_dev.ld_obd->obd_stopping)