Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocfs2: direct write will call ocfs2_rw_unlock() twice when doing aio+dio
ocfs2_file_write_iter() is usng the wrong return value ('written'). This will cause ocfs2_rw_unlock() be called both in write_iter & end_io, triggering a BUG_ON. This issue was introduced by commit 7da839c ("ocfs2: use __generic_file_write_iter()"). Orabug: 21612107 Fixes: 7da839c ("ocfs2: use __generic_file_write_iter()") Signed-off-by: Ryan Ding <[email protected]> Reviewed-by: Junxiao Bi <[email protected]> Cc: Al Viro <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information