/home/himanshu/clang-thread-safety-analysis/fs/inode.c:810:30: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
hlist_for_each_entry(inode, head, i_hash) {
^
/home/himanshu/clang-thread-safety-analysis/fs/inode.c:815:3: note: mutex acquired here
spin_lock(&inode->i_lock);
^
https://elixir.bootlin.com/linux/v5.2-rc2/source/fs/inode.c#L810 Similar to: https://github.com/ClangBuiltLinux/thread-safety-analysis/issues/28#issuecomment-496215839