diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2019-03-20 11:46:58 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-03-20 18:27:40 +0300 |
commit | bb229bbb3bf63d23128e851a1f3b85c083178fa1 (patch) | |
tree | 5b6b57fc2acdb4c09fd034e23c4930eb2ec2043a /drivers/block | |
parent | 16d80c54ad42c573a897ae7bcf5a9816be54e6fe (diff) | |
download | linux-bb229bbb3bf63d23128e851a1f3b85c083178fa1.tar.xz |
libceph: wait for latest osdmap in ceph_monc_blacklist_add()
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: 6305a3b41515 ("libceph: support for blacklisting clients")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions