Re: [LSF/MM/BPF TOPIC] Measuring limits and enhancing buffered IO

Al Viro
2024-02-26T02:49:25Z

On Sun, Feb 25, 2024 at 05:32:14PM -0800, Linus Torvalds wrote:

> But to take a different example, ext2 just calls
> generic_file_write_iter() *without* taking the inode lock, and does
> locking one page at a time. As far as I know, nobody ever really
> complained.

Uh? __generic_file_write_iter() doesn't take inode lock, but
generic_file_write_iter() does. O_APPEND handling aside, there's
also file_remove_privs() in there and it does need that lock.