Skip to content

Commit d5a38f6

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull Ceph updates from Sage Weil: "There is quite a bit here, including some overdue refactoring and cleanup on the mon_client and osd_client code from Ilya, scattered writeback support for CephFS and a pile of bug fixes from Zheng, and a few random cleanups and fixes from others" [ I already decided not to pull this because of it having been rebased recently, but ended up changing my mind after all. Next time I'll really hold people to it. Oh well. - Linus ] * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (34 commits) libceph: use KMEM_CACHE macro ceph: use kmem_cache_zalloc rbd: use KMEM_CACHE macro ceph: use lookup request to revalidate dentry ceph: kill ceph_get_dentry_parent_inode() ceph: fix security xattr deadlock ceph: don't request vxattrs from MDS ceph: fix mounting same fs multiple times ceph: remove unnecessary NULL check ceph: avoid updating directory inode's i_size accidentally ceph: fix race during filling readdir cache libceph: use sizeof_footer() more ceph: kill ceph_empty_snapc ceph: fix a wrong comparison ceph: replace CURRENT_TIME by current_fs_time() ceph: scattered page writeback libceph: add helper that duplicates last extent operation libceph: enable large, variable-sized OSD requests libceph: osdc->req_mempool should be backed by a slab pool libceph: make r_request msg_size calculation clearer ...
2 parents 698f415 + 5ee61e9 commit d5a38f6

22 files changed

+811
-519
lines changed

drivers/block/rbd.c

+3-11
Original file line numberDiff line numberDiff line change
@@ -1847,14 +1847,12 @@ static void rbd_osd_req_callback(struct ceph_osd_request *osd_req,
18471847
if (osd_req->r_result < 0)
18481848
obj_request->result = osd_req->r_result;
18491849

1850-
rbd_assert(osd_req->r_num_ops <= CEPH_OSD_MAX_OP);
1851-
18521850
/*
18531851
* We support a 64-bit length, but ultimately it has to be
18541852
* passed to the block layer, which just supports a 32-bit
18551853
* length field.
18561854
*/
1857-
obj_request->xferred = osd_req->r_reply_op_len[0];
1855+
obj_request->xferred = osd_req->r_ops[0].outdata_len;
18581856
rbd_assert(obj_request->xferred < (u64)UINT_MAX);
18591857

18601858
opcode = osd_req->r_ops[0].op;
@@ -5643,18 +5641,12 @@ static void rbd_sysfs_cleanup(void)
56435641
static int rbd_slab_init(void)
56445642
{
56455643
rbd_assert(!rbd_img_request_cache);
5646-
rbd_img_request_cache = kmem_cache_create("rbd_img_request",
5647-
sizeof (struct rbd_img_request),
5648-
__alignof__(struct rbd_img_request),
5649-
0, NULL);
5644+
rbd_img_request_cache = KMEM_CACHE(rbd_img_request, 0);
56505645
if (!rbd_img_request_cache)
56515646
return -ENOMEM;
56525647

56535648
rbd_assert(!rbd_obj_request_cache);
5654-
rbd_obj_request_cache = kmem_cache_create("rbd_obj_request",
5655-
sizeof (struct rbd_obj_request),
5656-
__alignof__(struct rbd_obj_request),
5657-
0, NULL);
5649+
rbd_obj_request_cache = KMEM_CACHE(rbd_obj_request, 0);
56585650
if (!rbd_obj_request_cache)
56595651
goto out_err;
56605652

0 commit comments

Comments
 (0)