From: Theodore Ts'o Date: Mon, 12 Dec 2011 15:53:02 +0000 (-0500) Subject: ext4: fix ext4_end_io_dio() racing against fsync() X-Git-Tag: v3.2-rc6~16^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5a7e97039a80fae673ccc115ce595d5b88fb4ee;p=pandora-kernel.git ext4: fix ext4_end_io_dio() racing against fsync() We need to make sure iocb->private is cleared *before* we put the io_end structure on i_completed_io_list. Otherwise fsync() could potentially run on another CPU and free the iocb structure out from under us. Reported-by: Kent Overstreet Signed-off-by: "Theodore Ts'o" Cc: stable@kernel.org --- Reading git-diff-tree failed