ceph-csi/internal
Humble Chirammal 94c5c5e119 util: remove deleteLock while we acquire clone operation lock
clone controller make sure there is no delete operation happens
on the source PVC which has been referred as the datasource of
clone PVC, we are safe to operate without looking at delete
operation lock in this case.

Subjected code in the controller:

...
if claim.Spec.DataSource != nil && rc.clone {
		err = p.setCloneFinalizer(ctx, claim)
		...
}

if !checkFinalizer(claim, pvcCloneFinalizer) {
		claim.Finalizers = append(claim.Finalizers, pvcCloneFinalizer)
		_, err := p.client.CoreV1().PersistentVolumeClaims(claim.Namespace).Update(..claim..)
	}

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2021-07-16 12:32:28 +00:00
..
cephfs cephfs: Get rid of locking at nodepublish 2021-07-16 07:18:56 +00:00
controller cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
csi-common cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
journal cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
liveness cleanup: resolves gofumpt issues of internal codes 2021-07-14 19:50:56 +00:00
rbd rbd: Get rid of locking at nodePublish 2021-07-16 07:18:56 +00:00
util util: remove deleteLock while we acquire clone operation lock 2021-07-16 12:32:28 +00:00