mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +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>
This commit is contained in:
committed by
mergify[bot]
parent
23c1d7c3e2
commit
b6bd8ca71a
@ -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