Re: [PATCH] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-04 Thread Icenowy Zheng
于 2021年1月4日 GMT+08:00 下午4:35:20, Amir Goldstein 写到: >On Mon, Jan 4, 2021 at 9:28 AM Icenowy Zheng wrote: >> >> 在 2021-01-03星期日的 16:10 +0200,Amir Goldstein写道: >> > On Fri, Jan 1, 2021 at 10:12 PM Icenowy Zheng >> > wrote: >> > > >> > > The function ovl_dir_real_file() currently uses the

Re: [PATCH] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-04 Thread Amir Goldstein
On Mon, Jan 4, 2021 at 9:28 AM Icenowy Zheng wrote: > > 在 2021-01-03星期日的 16:10 +0200,Amir Goldstein写道: > > On Fri, Jan 1, 2021 at 10:12 PM Icenowy Zheng > > wrote: > > > > > > The function ovl_dir_real_file() currently uses the semaphore of > > > the > > > inode to synchronize write to the

Re: [PATCH] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-03 Thread Icenowy Zheng
在 2021-01-03星期日的 16:10 +0200,Amir Goldstein写道: > On Fri, Jan 1, 2021 at 10:12 PM Icenowy Zheng > wrote: > > > > The function ovl_dir_real_file() currently uses the semaphore of > > the > > inode to synchronize write to the upperfile cache field. > > > > However, this function will get called by

Re: [PATCH] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-03 Thread Amir Goldstein
On Fri, Jan 1, 2021 at 10:12 PM Icenowy Zheng wrote: > > The function ovl_dir_real_file() currently uses the semaphore of the > inode to synchronize write to the upperfile cache field. > > However, this function will get called by ovl_ioctl_set_flags(), which > utilizes the inode semaphore too.

[PATCH] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-01 Thread Icenowy Zheng
The function ovl_dir_real_file() currently uses the semaphore of the inode to synchronize write to the upperfile cache field. However, this function will get called by ovl_ioctl_set_flags(), which utilizes the inode semaphore too. In this case ovl_dir_real_file() will try to claim a lock that is