Re: [PATCH 4/4] ovl: move ovl_file_accessed() to aio completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 12, 2023 at 8:37 PM Amir Goldstein <amir73il@xxxxxxxxx> wrote:
>
> Refactor the io completion helpers to handlers with clear hierarchy:
> - ovl_aio_rw_complete() is called on completion of submitted aio
>  `- ovl_aio_cleanup() is called after any aio submission attempt
>   `- ovl_rw_complete() is called after any io attempt
>
> Move ovl_copyattr() and ovl_file_accessed() to the common helper
> ovl_rw_complete(), so that they are called after aio completion.
>
> Note that moving ovl_file_accessed() changes touch_atime() therein to
> be called with mounter credentials in the sync read case.
>
> It does not seem to matter with which credentials touch_atime() is called.
> If it did matter, we would have needed to override to mounter credentials
> in ovl_update_time() which calls touch_atime() on upper dentry.
>
> Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx>

This commit is nonsense. It does not fix any bugs.
Direct aio also calls file_accessed() before submission,
regardless of overlayfs.

And on top of that, this commit has a bug that regresses sync io.
So I am dropping it from overlayfs-next.

Thanks,
Amir.




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux