Skip to contentSkip to conversation

rbd: add support for sparse reads

RFC PATCH Jeff Layton 1 participant 1 message Apr 2, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · kernel test robot

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...

Quoted 66 lines

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-add-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/20220402/202204021938.bYEXaOZ5-lkp(a)intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.2.0

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/1af6e49fa0bc1a2d7fdc8a400512ca8b6361eab6
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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/block/

If you fix the issue, kindly add following tag as appropriate

All errors (new ones prefixed by >>):

drivers/block/rbd.c: In function 'rbd_osd_req_callback':

Quoted 1 line
Quoted 1 line

drivers/block/rbd.c:1387:59: error: 'struct ceph_msg' has no member named 'sparse_read'

    1387 |         else if (osd_req->r_result > 0 && osd_req->r_reply->sparse_read)
         |                                                           ^~
Quoted 1 line
Quoted 1 line

drivers/block/rbd.c:1388:26: error: implicit declaration of function 'ceph_sparse_ext_map_end'; did you mean 'ceph_pagelist_append'? [-Werror=implicit-function-declaration]

    1388 |                 result = ceph_sparse_ext_map_end(&osd_req->r_ops[0]);
         |                          ^~~~~~~~~~~~~~~~~~~~~~~
         |                          ceph_pagelist_append

drivers/block/rbd.c: In function 'rbd_obj_read_object':

Quoted 1 line
Quoted 1 line

drivers/block/rbd.c:2775:23: error: implicit declaration of function 'ceph_alloc_sparse_ext_map'; did you mean 'ceph_alloc_page_vector'? [-Werror=implicit-function-declaration]

    2775 |                 ret = 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 = osd_req->r_priv;
1375 int result;
1376
1377 dout("%s osd_req %p result %d for obj_req %p\n", __func__, osd_req,
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_request))
1386 result = 0;

Quoted 2 lines

1387 else if (osd_req->r_result > 0 && osd_req->r_reply->sparse_read)
1388 result = ceph_sparse_ext_map_end(&osd_req->r_ops[0]);

1389 else
1390 result = osd_req->r_result;
1391
1392 rbd_obj_handle_request(obj_req, result);
1393 }
1394

Signature · 1 line
Jeff Layton <[email protected]>