Re: f2fs: support fault injection for f2fs_down_write_trylock()

From: Chao Yu
Date: Sun Apr 02 2023 - 21:22:40 EST


On 2023/4/1 2:55, Yangtao Li wrote:
I guess we can cover all trylock w/ FAULT_LOCK_OP type fault injection,

Oops, there is a typo, s/FAULT_LOCK_OP/FAULT_LOCK.

I meant introducing FAULT_LOCK to cover all below functions, and keep
FAULT_LOCK_OP as it is to just cover f2fs_trylock_op...

- inode_trylock
- down_read_trylock
- down_write_trylock
- mutex_trylock
- sb_start_write_trylock
- trylock_page

Thanks,