On Mon, 26 Dec 2022 14:20:15 +0800, Zhang Yi wrote: > From: Zhang Yi <yi.zhang@xxxxxxxxxx> > > In the dio write path, we only take shared inode lock for the case of > aligned overwriting initialized blocks inside EOF. But for overwriting > preallocated blocks, it may only need to split unwritten extents, this > procedure has been protected under i_data_sem lock, it's safe to > release the exclusive inode lock and take shared inode lock. > > [...] Applied, thanks! [1/1] ext4: dio take shared inode lock when overwriting preallocated blocks commit: 240930fb7e6b52229bdee5b1423bfeab0002fed2 Best regards, -- Theodore Ts'o <tytso@xxxxxxx>