android_kernel_sony_sdm845/include/linux/ceph
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ilya Dryomov 9c32ada4c0 libceph: wait for latest osdmap in ceph_monc_blacklist_add()
commit bb229bbb3bf63d23128e851a1f3b85c083178fa1 upstream.

Because map updates are distributed lazily, an OSD may not know about
the new blacklist for quite some time after "osd blacklist add" command
is completed.  This makes it possible for a blacklisted but still alive
client to overwrite a post-blacklist update, resulting in data
corruption.

Waiting for latest osdmap in ceph_monc_blacklist_add() and thus using
the post-blacklist epoch for all post-blacklist requests ensures that
all such requests "wait" for the blacklist to come into force on their
respective OSDs.

Cc: stable@vger.kernel.org
Fixes: 6305a3b415 ("libceph: support for blacklisting clients")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-27 14:13:02 +09:00
..
auth.h libceph: add authorizer challenge 2018-12-08 13:05:10 +01:00
buffer.h libceph: nuke ceph_kvfree() 2014-12-17 20:09:50 +03:00
ceph_debug.h
ceph_features.h libceph: implement CEPHX_V2 calculation mode 2018-12-08 13:05:10 +01:00
ceph_frag.h ceph: make logical calculation functions return bool 2016-05-26 01:15:39 +02:00
ceph_fs.h ceph: handle CEPH_SESSION_REJECT message 2016-10-03 16:13:50 +02:00
ceph_hash.h
cls_lock_client.h libceph: support for lock.lock_info 2016-08-24 23:49:15 +02:00
debugfs.h libceph: simplify our debugfs attr macro 2015-04-20 18:55:39 +03:00
decode.h libceph: add start en/decoding block helpers 2016-07-28 02:55:36 +02:00
libceph.h libceph: wait for latest osdmap in ceph_monc_blacklist_add() 2019-03-27 14:13:02 +09:00
mdsmap.h
messenger.h libceph: add authorizer challenge 2018-12-08 13:05:10 +01:00
mon_client.h libceph: support for blacklisting clients 2016-08-24 23:49:15 +02:00
msgpool.h libceph: fix some missing includes 2016-07-28 02:55:35 +02:00
msgr.h libceph: add authorizer challenge 2018-12-08 13:05:10 +01:00
osd_client.h libceph: initialize last_linger_id with a large integer 2016-11-10 20:13:08 +01:00
osdmap.h libceph: use BUG() instead of BUG_ON(1) 2017-03-15 10:02:51 +08:00
pagelist.h libceph: fixup includes in pagelist.h 2014-12-17 20:09:53 +03:00
rados.h libceph: support for sending notifies 2016-05-26 01:15:28 +02:00
string_table.h libceph: introduce reference counted string 2016-07-28 02:55:37 +02:00
types.h