]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: Fix I_NEW warning in race path in bch2_inode_insert()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 20 Jun 2024 17:20:49 +0000 (13:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 21 Jun 2024 14:17:07 +0000 (10:17 -0400)
commitdd9086487c1bb38641bcfbe765422c7f0a1a8d95
treecc28dbdddb75f5a299c0d73e6b8b75fccfcfd0ae
parent504794067fc266be5ac170777a94a927a72ac846
bcachefs: Fix I_NEW warning in race path in bch2_inode_insert()

discard_new_inode() is the correct interface for tearing down an indoe
that was fully created but not made visible to other threads, but it
expects I_NEW to be set, which we don't use.

Reported-by: https://github.com/koverstreet/bcachefs/issues/690
Fixes: bcachefs: Fix race path in bch2_inode_insert()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c