]> 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)
commit1358a64cf7e3441dd8f9e568bf60be37c252c8bc
tree1434bd538dcd99ae38044580b29d83db84a1a06d
parent043c01e01550b2bba533c4923998d749b3ffb998
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