diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-02-25 15:22:27 +0100 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-03 04:33:52 +0200 |
commit | 7cc69d42e6950404587bef9489a5ed6f9f6bab4e (patch) | |
tree | 42677df6cd502d33fac9ca97a4a929bb32f14176 /drivers | |
parent | libceph: add support for CEPH_OSD_OP_SETALLOCHINT osd op (diff) | |
download | linux-7cc69d42e6950404587bef9489a5ed6f9f6bab4e.tar.xz linux-7cc69d42e6950404587bef9489a5ed6f9f6bab4e.zip |
libceph: bump CEPH_OSD_MAX_OP to 3
Our longest osd request now contains 3 ops: copyup+hint+write.
Also, CEPH_OSD_MAX_OP value in a BUG_ON in rbd_osd_req_callback() was
hard-coded to 2. Fix it, and switch to rbd_assert while at it.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/rbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index b55b7812cf93..4c612c4041b6 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -1654,7 +1654,7 @@ static void rbd_osd_req_callback(struct ceph_osd_request *osd_req, if (osd_req->r_result < 0) obj_request->result = osd_req->r_result; - BUG_ON(osd_req->r_num_ops > 2); + rbd_assert(osd_req->r_num_ops <= CEPH_OSD_MAX_OP); /* * We support a 64-bit length, but ultimately it has to be |