Forwarded: Re: [syzbot] [nilfs?] INFO: task hung in find_inode (2)

syzbot posted 1 patch 1 day, 8 hours ago
Forwarded: Re: [syzbot] [nilfs?] INFO: task hung in find_inode (2)
Posted by syzbot 1 day, 8 hours ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: Re: [syzbot] [nilfs?] INFO: task hung in find_inode (2)
Author: konishi.ryusuke@gmail.com

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 89a312991dc6

Prevent the log writer from being started from nilfs_evict_inode(),
which can cause a deadlock.

diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c
index 34e6096069ad..94e309f6bb2b 100644
--- a/fs/nilfs2/inode.c
+++ b/fs/nilfs2/inode.c
@@ -895,8 +895,6 @@ void nilfs_evict_inode(struct inode *inode)
 
 	nilfs_clear_inode(inode);
 
-	if (IS_SYNC(inode))
-		nilfs_set_transaction_flag(NILFS_TI_SYNC);
 	nilfs_transaction_commit(sb);
 	/*
 	 * May construct a logical segment and may fail in sync mode.
-- 
2.53.0