ceph: if we are blacklisted, __do_request returns directly
PATCH 1/1 ceph: if we are blacklisted, __do_request returns directly
Signed-off-by Yanhu Cao <[email protected]>
--- fs/ceph/mds_client.c | 5 +++++ 1 file changed, 5 insertions(+)
fs/ceph/mds_client.c +5 -0
@@ -2708,6 +2708,11 @@ static void __do_request(struct ceph_mds_client *mdsc,put_request_session (req); +if (mdsc->fsc->blacklisted) { + err = -EACCES ; + goto finish; + } + mds =__choose_mds (mdsc, req, &random);if (mds <0 ||ceph_mdsmap_get_state (mdsc->mdsmap, mds) <CEPH_MDS_STATE_ACTIVE ) {
Signature · 1 line
2.24.2 (Apple Git-127)
DNM. will add test mount option recover_session.
Quoted 25 lines · Yanhu Cao
Signed-off-by Yanhu Cao <[email protected]>--- fs/ceph/mds_client.c | 5 +++++ 1 file changed, 5 insertions(+)fs/ceph/mds_client.c +5
-1@@ -2708,6 +2708,11 @@ static void __do_request(struct ceph_mds_client *mdsc,put_request_session (req); +if (mdsc->fsc->blacklisted) { + err = -EACCES ; + goto finish; + } + mds =__choose_mds (mdsc, req, &random);if (mds <0 ||ceph_mdsmap_get_state (mdsc->mdsmap, mds) <CEPH_MDS_STATE_ACTIVE ) { --2.24.2 (Apple Git-127)