]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "ocfs2: change ip_unaligned_aio to of type mutex from atomit_t"
authorRyan Ding <ryan.ding@oracle.com>
Fri, 16 Oct 2015 08:26:40 +0000 (16:26 +0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 30 Oct 2015 16:13:42 +0000 (09:13 -0700)
commit6e726498f7be60d1b1a3271069fd37a9fdac1cbb
treefe74eb91305c2a40a5becdb61525cd9f6639e268
parent2ba9b9cf9749867d4512934efe3c0e9d2a7e693f
Revert "ocfs2: change ip_unaligned_aio to of type mutex from atomit_t"

This reverts commit c18ceab01240fd4c354b78d877571b729908e4a3.

Test shows ip_unaligned_aio will cost much cpu clock when doing aio+dio(in a
function named mutex_spin_on_owner), and will significant affect performance in
a system with poor cpu.

The cause is we should not call mutex_unlock(see the comments above
mutex_unlock) in ocfs2_dio_end_io, which will be in irq context when doing
aio+dio.

Revert the patch to use wait_event/wake_up_all to do the work.

Signed-off-by: Ryan Ding <ryan.ding@oracle.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
fs/ocfs2/aops.c
fs/ocfs2/aops.h
fs/ocfs2/file.c
fs/ocfs2/inode.h
fs/ocfs2/super.c