Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]> Cc: [email protected]
- Loading branch information