Re: (RESEND) [PATCH] ovl: stacked file operation for mmap

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

 



 ---- 在 星期日, 2020-10-18 15:53:23 Amir Goldstein <amir73il@xxxxxxxxx> 撰写 ----
 > On Fri, Oct 16, 2020 at 7:38 PM Chengguang Xu <cgxu519@xxxxxxxxxxxx> wrote:
 > >
 > > Currently only mmap does not behave as stacked file operation,
 > > although in practice there is less change to open a file in
 > > RDONLY mode and take long time to do mmap but the fix looks
 > > reasonable.
 > 
 > I suppose you do not have a real life use case where this fix
 > is relevant?

Detected by some unexpectedly running test scripts.

 > 
 > The thing is that this change is not without consequence.
 > It could result in 2 overlapping mmaps on the same RDONLY fd
 > mapping a different file and it can be even more confusing
 > than different fd mapping different files.
 > 
 > It is not clear which non-standard behavior is preferred, so without
 > any evidence that one strange behavior is preferred over the other
 > I don't think we should change anything.
 > 
Makes sense.





[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