Content-Type: multipart/mixed; boundary="===============3578321571412944547==" MIME-Version: 1.0 From: Jeff Layton To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH] rbd: add support for sparse reads Date: Sat, 02 Apr 2022 08:14:05 -0400 Message-ID: In-Reply-To: <202204021938.bYEXaOZ5-lkp@intel.com> List-Id: --===============3578321571412944547== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sat, 2022-04-02 at 19:26 +0800, kernel test robot wrote: > Hi Jeff, > = > [FYI, it's a private test report for your RFC patch.] > [auto build test ERROR on ceph-client/for-linus] > [also build test ERROR on v5.17 next-20220401] > [If your patch is applied to the wrong git tree, kindly drop us a note. My apologies... This is an experimental patch based on top of some patches in the ceph-client/testing branch. I'll try to remember to use --base next time... > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > = > url: https://github.com/intel-lab-lkp/linux/commits/Jeff-Layton/rbd-ad= d-support-for-sparse-reads/20220402-010754 > base: https://github.com/ceph/ceph-client.git for-linus > config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20220= 402/202204021938.bYEXaOZ5-lkp(a)intel.com/config) > compiler: nios2-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/intel-lab-lkp/linux/commit/1af6e49fa0bc1a2d7= fdc8a400512ca8b6361eab6 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Jeff-Layton/rbd-add-support-for-= sparse-reads/20220402-010754 > git checkout 1af6e49fa0bc1a2d7fdc8a400512ca8b6361eab6 > # save the config file to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cro= ss O=3Dbuild_dir ARCH=3Dnios2 SHELL=3D/bin/bash drivers/block/ > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > drivers/block/rbd.c: In function 'rbd_osd_req_callback': > > > drivers/block/rbd.c:1387:59: error: 'struct ceph_msg' has no member n= amed 'sparse_read' > 1387 | else if (osd_req->r_result > 0 && osd_req->r_reply->sp= arse_read) > | ^~ > > > drivers/block/rbd.c:1388:26: error: implicit declaration of function = 'ceph_sparse_ext_map_end'; did you mean 'ceph_pagelist_append'? [-Werror=3D= implicit-function-declaration] > 1388 | result =3D ceph_sparse_ext_map_end(&osd_req->r= _ops[0]); > | ^~~~~~~~~~~~~~~~~~~~~~~ > | ceph_pagelist_append > drivers/block/rbd.c: In function 'rbd_obj_read_object': > > > drivers/block/rbd.c:2775:23: error: implicit declaration of function = 'ceph_alloc_sparse_ext_map'; did you mean 'ceph_alloc_page_vector'? [-Werro= r=3Dimplicit-function-declaration] > 2775 | ret =3D ceph_alloc_sparse_ext_map(&osd_req->r_= ops[0]); > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > | ceph_alloc_page_vector > cc1: some warnings being treated as errors > = > = > vim +1387 drivers/block/rbd.c > = > 1371 = > 1372 static void rbd_osd_req_callback(struct ceph_osd_request *osd_req) > 1373 { > 1374 struct rbd_obj_request *obj_req =3D osd_req->r_priv; > 1375 int result; > 1376 = > 1377 dout("%s osd_req %p result %d for obj_req %p\n", __func__, osd_re= q, > 1378 osd_req->r_result, obj_req); > 1379 = > 1380 /* > 1381 * Writes aren't allowed to return a data payload. In some > 1382 * guarded write cases (e.g. stat + zero on an empty object) > 1383 * a stat response makes it through, but we don't care. > 1384 */ > 1385 if (osd_req->r_result > 0 && rbd_img_is_write(obj_req->img_reques= t)) > 1386 result =3D 0; > > 1387 else if (osd_req->r_result > 0 && osd_req->r_reply->sparse_read) > > 1388 result =3D ceph_sparse_ext_map_end(&osd_req->r_ops[0]); > 1389 else > 1390 result =3D osd_req->r_result; > 1391 = > 1392 rbd_obj_handle_request(obj_req, result); > 1393 } > 1394 = > = -- = Jeff Layton --===============3578321571412944547==--