]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: fix several issues of append dio
authorJoseph Qi <joseph.qi@huawei.com>
Fri, 4 Sep 2015 22:43:40 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commit1286b83cd6edb068ffd6274c78069d94067b748b
treea7a57fef59cc48409f6573ac7734016646730a90
parentddbd108729d8ee3a6dfce8f0bd8fd993d1a24fb2
ocfs2: fix several issues of append dio

1) Take rw EX lock in case of append dio.
2) Explicitly treat the error code -EIOCBQUEUED as normal.
3) Set di_bh to NULL after brelse if it may be used again later.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Yiwen Jiang <jiangyiwen@huawei.com>
Cc: Weiwei Wang <wangww631@huawei.com>
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>
fs/ocfs2/aops.c
fs/ocfs2/file.c