diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-02-22 13:43:24 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 10:12:46 +0200 |
commit | dd4358550fc5244d4757eae40e23d87894fe5273 (patch) | |
tree | 2206fb90ee2f6b05386dd6928bf1200de4409909 /net/ceph | |
parent | 5feb0d8d2f10c3f39f3d3a754dded74bb430a5e6 (diff) | |
download | linux-dd4358550fc5244d4757eae40e23d87894fe5273.tar.bz2 |
rbd: get the latest osdmap when using an existing client
Currently we request the latest osdmap only if ceph_pg_poolid_by_name()
fails with -ENOENT. This is effective with newly created pools, but we
also want to avoid attempting to map from pools that were recently
deleted and report "pool does not exist" instead. (Such an attempt
eventually fails in the OSD client after map check code kicks in, but
the error message is confusing.)
Request the latest osdmap unconditionally after bumping a ref on an
existing client in rbd_client_find().
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph')
0 files changed, 0 insertions, 0 deletions