mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rbd: take lock on targetpath during node operation
We should not be dependent on the CO to ensure
that it will serialize the request instead of
that we need to have own internal locks to ensure
that we dont do concurrent operations for same
request.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit b6bd8ca71a
)
This commit is contained in:
committed by
mergify[bot]
parent
20a317e5b3
commit
2a7f6bbcb9
@ -28,6 +28,9 @@ const (
|
||||
|
||||
// SnapshotOperationAlreadyExistsFmt string format to return for concurrent operation.
|
||||
SnapshotOperationAlreadyExistsFmt = "an operation with the given Snapshot ID %s already exists"
|
||||
|
||||
// TargetPathOperationAlreadyExistsFmt string format to return for concurrent operation on target path.
|
||||
TargetPathOperationAlreadyExistsFmt = "an operation with the given target path %s already exists"
|
||||
)
|
||||
|
||||
// VolumeLocks implements a map with atomic operations. It stores a set of all volume IDs
|
||||
|
Reference in New Issue
Block a user