Project

General

Profile

Actions

Bug #3871

closed

krbd: initial header read may be out of date

Added by Josh Durgin over 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Currently krbd uses the version parameter of a watch operation to try to prevent this, but that was never implemented, and would have problems with retries anyway. Instead, we can fix the race by establishing a watch before reading the header, so we won't miss any notifies between reading the header and establishing a watch. This race could make a snapshot not actually be created as intended, since the snapshot context would be out of date.

This was fixed recently in userspace by commit:c4370ff03f8ab655a009cfd9ba3a0827d8c58b11

Actions

Also available in: Atom PDF