libceph: fix messenger CONFIG_BLOCK dependencies
authorAlex Elder <elder@inktank.com>
Thu, 31 Jan 2013 22:02:01 +0000 (16:02 -0600)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 02:27:40 +0000 (18:27 -0800)
commit3ebc21f7bc2f9c0145bbbf0f12430b766a200f9f
tree1434bd538dcd99ae38044580b29d83db84a1a06d
parent695b711933689ea51af782760f4b1e2c6a42a631
libceph: fix messenger CONFIG_BLOCK dependencies

The ceph messenger has a few spots that are only used when
bio messages are supported, and that's only when CONFIG_BLOCK
is defined.  This surrounds a couple of spots with #ifdef's
that would cause a problem if CONFIG_BLOCK were not present
in the kernel configuration.

This resolves:
    http://tracker.ceph.com/issues/3976

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
include/linux/ceph/messenger.h
net/ceph/messenger.c