path: root/xlators/features/marker/src/marker-quota.c
diff options
authorSakshi <>2015-07-16 14:31:03 +0530
committerRaghavendra G <>2015-08-27 06:25:34 -0700
commit9e51aa646fdc5840b6fa9b12b35c5cc2af274c3c (patch)
treea7ff968e51340b9e590805bc721fd8ae43c4b3ad /xlators/features/marker/src/marker-quota.c
parentcf3d6f14ae031ba2f5269cea6dbf80e60d00cce5 (diff)
dht : lock on subvols to prevent lookup vs rmdir race
There is a possibility that while an rmdir is completed on some non-hashed subvol and proceeding to others. A lookup selfheal can recreate the same directory on those subvols for which the rmdir had succeeded. The fix is to take a blocking inodelk on the subvols before starting rmdir. Since selfheal requires lock on all subvols, if an rmdir is in progess acquiring locks will fail and vice versa. Change-Id: I841a44758c3b88f5e04d1cb73ad36e0cac9fdabb BUG: 1245065 Signed-off-by: Sakshi <> Reviewed-on: Tested-by: NetBSD Build System <> Reviewed-by: Raghavendra G <>
Diffstat (limited to 'xlators/features/marker/src/marker-quota.c')
0 files changed, 0 insertions, 0 deletions