Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359648
b: refs/heads/master
c: 1e32d34
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed Feb 14, 2013
1 parent 3ddf936 commit 200f78a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72fe25e3460c8673984370208e0e6261101372d6
refs/heads/master: 1e32d34cfa6759df58b5f4002664241f2a0fef6a
6 changes: 5 additions & 1 deletion trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,6 @@ static struct ceph_osd_request *rbd_osd_req_create(
case OBJ_REQUEST_BIO:
rbd_assert(obj_request->bio_list != NULL);
osd_req->r_bio = obj_request->bio_list;
bio_get(osd_req->r_bio);
/* osd client requires "num pages" even for bio */
osd_req->r_num_pages = calc_pages_for(offset, length);
break;
Expand Down Expand Up @@ -4149,6 +4148,11 @@ int __init rbd_init(void)
{
int rc;

if (!libceph_compatible(NULL)) {
rbd_warn(NULL, "libceph incompatibility (quitting)");

return -EINVAL;
}
rc = rbd_sysfs_init();
if (rc)
return rc;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ceph/ceph_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*/
bool libceph_compatible(void *data)
{
return false;
return true;
}
EXPORT_SYMBOL(libceph_compatible);

Expand Down
4 changes: 0 additions & 4 deletions trunk/net/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ void ceph_osdc_release_request(struct kref *kref)
if (req->r_own_pages)
ceph_release_page_vector(req->r_pages,
req->r_num_pages);
#ifdef CONFIG_BLOCK
if (req->r_bio)
bio_put(req->r_bio);
#endif
ceph_put_snap_context(req->r_snapc);
ceph_pagelist_release(&req->r_trail);
if (req->r_mempool)
Expand Down

0 comments on commit 200f78a

Please sign in to comment.