diff options
author | wang di <di.wang@intel.com> | 2013-06-03 21:40:41 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-03 11:26:34 -0700 |
commit | 8f4055035edbf2a81c1e78b8b7501f059d5f603b (patch) | |
tree | d8678d9e4ffbed5b166f4126d6572031e9a6b1e1 | |
parent | bfba872aee6a247c5941132e7e718e71c7c3ef41 (diff) | |
download | op-kernel-dev-8f4055035edbf2a81c1e78b8b7501f059d5f603b.zip op-kernel-dev-8f4055035edbf2a81c1e78b8b7501f059d5f603b.tar.gz |
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 <di.wang@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lustre/obdecho/echo_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c index 0545d16..bc58789 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) |