]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbed7e2211ea9dfb38492a7df6e67ca598479624c
tree1434bd538dcd99ae38044580b29d83db84a1a06d
parent5baddcad25f1e2968919ae73ed3134859ce98e14
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