Project

General

Profile

Actions

Bug #5222

closed

krbd: use per-rbd_dev mutex to protect header updates

Added by Alex Elder almost 11 years ago. Updated almost 11 years ago.

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

0%

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

Description

Currently updating header information for an rbd device
is protected by the control lock, which precludes
concurrent header updates to distinct devices.

There's no need to serialize this. There would be
no conflict in having all mapped images get header
updates simultaneously.

The mutex is used to protect from concurrent updates
on a single image header, and as such a mutex within
the rbd_dev structure could be used for protection.

Actions #1

Updated by Alex Elder almost 11 years ago

  • Status changed from New to Fix Under Review

This patch has been posted for review:

0004-rbd-use-rwsem-to-protect-header-updates.patch

Actions #2

Updated by Sage Weil almost 11 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF