libceph: redo callbacks and factor out MOSDOpReply decoding
authorIlya Dryomov <idryomov@gmail.com>
Thu, 28 Apr 2016 14:07:24 +0000 (16:07 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 22:36:28 +0000 (00:36 +0200)
commitfe5da05e979830b43b115d8a18ead521d507c783
tree6afb8cacfd090d9d3b46a0a9976930957bb2e6cf
parent85e084feb47349d62989efe1713a8723af95f4ea
libceph: redo callbacks and factor out MOSDOpReply decoding

If you specify ACK | ONDISK and set ->r_unsafe_callback, both
->r_callback and ->r_unsafe_callback(true) are called on ack.  This is
very confusing.  Redo this so that only one of them is called:

    ->r_unsafe_callback(true), on ack
    ->r_unsafe_callback(false), on commit

or

    ->r_callback, on ack|commit

Decode everything in decode_MOSDOpReply() to reduce clutter.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/file.c
include/linux/ceph/osd_client.h
net/ceph/osd_client.c