summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorRyan Ding <ryan.ding@oracle.com>2015-09-04 15:42:36 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-21 10:10:59 -0700
commit95125d513b1a434c00f68276b7484acd59022606 (patch)
tree09e0e6f81c55bf3447e1a9b0365f5eaf529fc216 /mm
parent7548d27d214a61ee0caaf81fcbcf46b4b4ec76ff (diff)
ocfs2: direct write will call ocfs2_rw_unlock() twice when doing aio+dio
commit aa1057b3dec478b20c77bad07442318ae36d893c upstream. 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 7da839c47589 ("ocfs2: use __generic_file_write_iter()"). Orabug: 21612107 Fixes: 7da839c47589 ("ocfs2: use __generic_file_write_iter()") Signed-off-by: Ryan Ding <ryan.ding@oracle.com> Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions