Skip to content

rbd: manage racing opens/removes

Alex Elder ceph-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rbd: define flags field, use it for exists flagdrivers/block/rbd.c+7 -11 reply
2/2rbd: prevent open for image being removeddrivers/block/rbd.c+11 -42 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJosh Durgin
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] rbd: manage racing opens/removes

A recent change to rbd prevented rbd devices from being unmapped when they were in use. However that change did not address a different, but related problem. It is possible for an open (the one that would bump the open count from 0 to 1) to begin after a request to remove the rbd device has decided it can proceed.

To fix this, define a new "removing" flag to prevent opens from proceeding once ermoval of a device has begun. The first patch in this series defines a new flags field, and uses it for this as well as the "exists" flag for snapshot mappings.

-Alex

[PATCH 1/2] rbd: define flags field, use it for exists flag [PATCH 2/2] rbd: prevent open for image being removed