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

2021-01-04 Thread Icenowy Zheng
于 2021年1月4日 GMT+08:00 下午3:28:35, 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

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

2021-01-03 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