Project

General

Profile

Actions

Bug #4867

closed

rbd: a few small issues

Added by Alex Elder almost 11 years ago. Updated almost 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

I found and fixed a few small issues in the rbd code and I'm
just documenting them here.

Actions #1

Updated by Alex Elder almost 11 years ago

rbd: fix up the layering warning message

A warning gets spewed for any image being probed, including parent
images. Set up a condition such that the warning message only gets
printed for the image being mapped, not any of its parents.

Also, I didn't like the way the warning ended up being so long.
Make it a terse warning instead. People experimenting with layering
will know what the message means.

Signed-off-by: Alex Elder <>

Actions #2

Updated by Alex Elder almost 11 years ago

rbd: snap names are pointer to constant data

Make explicit that snapshot names don't change by making functions
return and take parameters that that point to const qualified data.

Signed-off-by: Alex Elder <>

Actions #3

Updated by Alex Elder almost 11 years ago

rbd: don't revalidate so much

Whenever a header object event causes a mapped rbd image to refresh
its header information, revalidate_disk() is being called. This was
done in rbd_dev_refresh() outside the control mutex in order to
avoid a lock inversion. Although a an event like this might
indicate the image has changed size, most of the time it does not.

Record the image size before and after the refresh, and only
call revalidate_disk() if it changes.

Signed-off-by: Alex Elder <>

Actions #4

Updated by Alex Elder almost 11 years ago

  • Status changed from In Progress to Fix Under Review

The following have been posted for review. They are
available in the "review/wip-rbd-cleanup-6" branch of
the ceph-client git repository.

This series has two patches that fix two annoyances
and a third that makes snapshot names be treated
consistently as constant data.

-Alex

[PATCH 1/3] rbd: fix up the layering warning message
[PATCH 2/3] rbd: don't revalidate so much
[PATCH 3/3] rbd: snap names are pointer to constant data

Actions #5

Updated by Anonymous almost 11 years ago

  • Project changed from Ceph to rbd
  • Target version deleted (v0.62b)
Actions #6

Updated by Alex Elder almost 11 years ago

  • Status changed from Fix Under Review to Resolved

The following have been committed to the "testing" branch
of the ceph-client git repository:

451411f rbd: fix up the layering warning message
4e32161 rbd: don't revalidate so much
269ef89 rbd: snap names are pointer to constant data

Actions

Also available in: Atom PDF