* ext4 fiemap and the inode lock
@ 2020-04-27 10:50 Christoph Hellwig
2020-04-27 14:45 ` Ritesh Harjani
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2020-04-27 10:50 UTC (permalink / raw)
To: Ritesh Harjani; +Cc: linux-ext4
Hi Ritesh,
before you converted ext4 to use iomap for fiemap, the indirect block
case used generic_block_fiemap and thus took i_rwsem around the
actual fiemap operation. Do you remember if you did an audit if it
was ok to drop it, or did that just slip in?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ext4 fiemap and the inode lock
2020-04-27 10:50 ext4 fiemap and the inode lock Christoph Hellwig
@ 2020-04-27 14:45 ` Ritesh Harjani
0 siblings, 0 replies; 2+ messages in thread
From: Ritesh Harjani @ 2020-04-27 14:45 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-ext4
Hello Christoph,
On 4/27/20 4:20 PM, Christoph Hellwig wrote:
> Hi Ritesh,
>
> before you converted ext4 to use iomap for fiemap, the indirect block
> case used generic_block_fiemap and thus took i_rwsem around the
> actual fiemap operation. Do you remember if you did an audit if it
> was ok to drop it, or did that just slip in?
So, maybe since maybe the request was only to provide the block mapping
and since extent path didn't have it - so I may have not added it into
the indirect block case as well. Assuming both anyways uses same
-> i_data_sem lock. But I am not sure if it was deliberately dropped,
otherwise I would have noted that in my cover letter. So maybe it got
missed. But I will try and search in internal dev branches too, to see
if I could find anything related to that.
Thanks for noting that.
-ritesh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-27 10:50 ext4 fiemap and the inode lock Christoph Hellwig
2020-04-27 14:45 ` Ritesh Harjani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox