mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
Merge pull request #21941 from ukernel/wip-24053
mds: reply session reject for open request from blacklisted client
This commit is contained in:
commit
0edab5fcc3
@ -124,7 +124,7 @@ class KernelMount(CephFSMount):
|
||||
def cleanup(self):
|
||||
pass
|
||||
|
||||
def umount_wait(self, force=False, require_clean=False):
|
||||
def umount_wait(self, force=False, require_clean=False, timeout=900):
|
||||
"""
|
||||
Unlike the fuse client, the kernel client's umount is immediate
|
||||
"""
|
||||
|
@ -359,7 +359,8 @@ void Server::handle_client_session(MClientSession *m)
|
||||
});
|
||||
|
||||
if (blacklisted) {
|
||||
dout(10) << "ignoring blacklisted client " << session->info.inst.addr << dendl;
|
||||
dout(10) << "rejecting blacklisted client " << session->info.inst.addr << dendl;
|
||||
mds->send_message_client(new MClientSession(CEPH_SESSION_REJECT), session);
|
||||
m->put();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user