Skip to contentSkip to conversation

ext4 fiemap and the inode lock

DISCUSSION Christoph Hellwig 2 participants 2 messages Apr 27, 2020

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

Hello Christoph,

Quoted 6 lines · Christoph Hellwig

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