mirror of
https://github.com/ceph/ceph
synced 2025-03-03 23:10:06 +00:00
Merge PR #24849 into master
* refs/pull/24849/head: client: remove redundant abort logic during dentry invalidation test Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Zheng Yan <zyan@redhat.com>
This commit is contained in:
commit
3358e3a2d6
@ -10334,19 +10334,12 @@ int Client::test_dentry_handling(bool can_invalidate)
|
||||
ceph_assert(dentry_invalidate_cb);
|
||||
ldout(cct, 1) << "using dentry_invalidate_cb" << dendl;
|
||||
r = 0;
|
||||
} else if (remount_cb) {
|
||||
} else {
|
||||
ceph_assert(remount_cb);
|
||||
ldout(cct, 1) << "using remount_cb" << dendl;
|
||||
r = _do_remount(false);
|
||||
}
|
||||
if (r) {
|
||||
bool should_abort = cct->_conf.get_val<bool>("client_die_on_failed_dentry_invalidate");
|
||||
if (should_abort) {
|
||||
lderr(cct) << "no method to invalidate kernel dentry cache; quitting!" << dendl;
|
||||
ceph_abort();
|
||||
} else {
|
||||
lderr(cct) << "no method to invalidate kernel dentry cache; expect issues!" << dendl;
|
||||
}
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user