Re: [PATCH v3] ext4: drop s_writepages_rwsem around inline data handling in writepages

From: Zhou, Yun

Date: Thu Jun 18 2026 - 10:56:07 EST




On 6/18/2026 10:23 PM, Jan Kara wrote:

On Mon 15-06-26 14:10:15, Yun Zhou wrote:

You have fixed this differently (not expanding extra isize from
ext4_evict_inode()) and furthermore this scenario is really impossible
because you cannot be inside ext4_writepages() on inode that's undergoing
eviction. SO let's discard this patch.

Yes, that patch series can resolves all the deadlock risks associated with
calling iput(ea_inode) while holding a jbd2 handle—something I hadn't even considered at first. I really owe this to your suggestions.

BR,
Yun