diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-10-16 11:32:50 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 14:11:39 +0300 |
commit | 76bd6ec4988065d39983ba8e93bb738313f68050 (patch) | |
tree | 8c64b12229d06002ff7b6232201036a52dd02f7f | |
parent | 933ad2c9c8bbb1623c2d3c5753ad340152e15d9d (diff) | |
download | linux-76bd6ec4988065d39983ba8e93bb738313f68050.tar.xz |
ceph: -EINVAL on decoding failure in ceph_mdsc_handle_fsmap()
Don't set ->mdsmap_err to -ENOENT unconditionally, and drop unneeded
return statement while at it.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r-- | fs/ceph/mds_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 8c8361262ade..b76506be4228 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -3879,14 +3879,14 @@ void ceph_mdsc_handle_fsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg) goto err_out; } return; + bad: pr_err("error decoding fsmap\n"); err_out: mutex_lock(&mdsc->mutex); - mdsc->mdsmap_err = -ENOENT; + mdsc->mdsmap_err = err; __wake_requests(mdsc, &mdsc->waiting_for_map); mutex_unlock(&mdsc->mutex); - return; } /* |