Merge pull request #47593 from lxbsz/wip-57126

client: abort the client if we couldn't invalidate dentry caches

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
This commit is contained in:
Rishabh Dave 2022-09-02 17:53:07 +05:30 committed by GitHub
commit bc264a9812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4589,7 +4589,10 @@ public:
explicit C_Client_Remount(Client *c) : client(c) {}
void finish(int r) override {
ceph_assert(r == 0);
client->_do_remount(true);
auto result = client->_do_remount(true);
if (result.second) {
ceph_abort();
}
}
};