Re: [PATCH] ocfs2: avoid getting dlm lock of the target directory multiple times during reflink process

From: Joseph Qi
Date: Tue Aug 31 2021 - 03:40:05 EST




On 8/31/21 2:25 PM, Gang He wrote:
> Hello Joseph and Wengang,
>
> When you have time, please help review this patch.
> About the deadlock problem which was caused by ocfs2_downconvert_lock failure, we have the fix patch, it is very key.
> But I feel this patch is still useful as a optimization patch, the user
> case is to reflink the files to the same directory concurrently, our users usually backup the files(via reflink) from the cluster nodes concurrently(via crontab) every day/hour.
> The current design, during the reflink process, the node will acquire/release dlm lock of the target directory multiple times,
> this is very inefficient in concurrently reflink.
>

Sure, I'll spend some time this week.

Thanks,
Joseph