Skip to content
Commit 79aec984 authored by Sam Lang's avatar Sam Lang Committed by Alex Elder
Browse files

ceph: Check for err on mds request in atomic_open



The error returned by ceph_mdsc_do_request includes errors sending the
request, errors on timeout, or any errors coming from the mds.  If
ceph_mdsc_do_request returns an error, the reply struct will most likely
be bogus.  We need to bail out and propogate the error instead of
overwriting it.

Signed-off-by: default avatarSam Lang <sam.lang@inktank.com>
Reviewed-by: default avatarSage Weil <sage@inktank.com>
parent 0fa6ebc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment