Project

General

Profile

Actions

Bug #52982

closed

client: Inode::hold_caps_until should be a time from a monotonic clock

Added by Patrick Donnelly over 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
task(easy), task(intern)
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The use of the real clock is vulnerable to system clock changes that could prevent release of any caps.

Use ceph::coarse_mono_clock and ceph::coarse_mono_time. See src/mds for uses.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #55936: quincy: client: Inode::hold_caps_until should be a time from a monotonic clockResolvedNeeraj Pratap SinghActions
Copied to CephFS - Backport #55937: pacific: client: Inode::hold_caps_until should be a time from a monotonic clockResolvedNeeraj Pratap SinghActions
Actions

Also available in: Atom PDF