ocfs2: always unlock when completing dio writes
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 2 Dec 2016 00:31:14 +0000 (16:31 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 10 Dec 2016 20:39:45 +0000 (12:39 -0800)
commitdbf896fc286a62bf215b904c6ff5d197df93e685
tree35b17d49eace7cd159300102f5d55d687759ddaa
parent085549553dca86c866f26d233d9cfe19f169c288
ocfs2: always unlock when completing dio writes

Always unlock the inode when completing dio writes, even if an error
has occurrred.  The caller already checks the inode and unlocks it
if needed, so we might as well reduce contention.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/ocfs2/aops.c