From 31bf0908f5c5eb3ed4063f8b3f03f1cc94defd83 Mon Sep 17 00:00:00 2001 From: anserper Date: Thu, 11 Dec 2008 15:11:17 +0000 Subject: [PATCH] b=17938 i=Vitaly Fertman i=Johann Lombardi Initizalize rqset for not to oops in callback --- lustre/lov/lov_request.c | 2 ++ lustre/tests/sanity.sh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lustre/lov/lov_request.c b/lustre/lov/lov_request.c index 830ebfb..7e2eda5 100644 --- a/lustre/lov/lov_request.c +++ b/lustre/lov/lov_request.c @@ -1017,6 +1017,7 @@ int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo, sizeof(*req->rq_oi.oi_oa)); req->rq_oi.oi_oa->o_id = loi->loi_id; req->rq_oi.oi_cb_up = cb_getattr_update; + req->rq_rqset = set; lov_set_add_req(req, set); } @@ -1443,6 +1444,7 @@ int lov_prep_sync_set(struct obd_export *exp, struct obd_info *oinfo, req->rq_oi.oi_policy.l_extent.end = re; req->rq_oi.oi_policy.l_extent.gid = -1; req->rq_oi.oi_cb_up = cb_sync_update; + req->rq_rqset = set; lov_set_add_req(req, set); } diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8c0a93a..a759606 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5648,6 +5648,11 @@ test_152() { } run_test 152 "test read/write with enomem ============================" +test_153() { + multiop $DIR/$tfile Ow4096Ycu || error "multiop failed" +} +run_test 153 "test if fdatasync does not crash =======================" + POOL=${POOL:-cea1} TGT_COUNT=$OSTCOUNT TGTPOOL_FIRST=1 -- 1.8.3.1