summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2012-07-22 20:19:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-07-22 20:19:31 -0400
commit4bd809dbbf177ad0c450d702466b1da63e1b4b7e (patch)
tree80493da203ac42a448489bc8e589207b9f735c2b /drivers/devfreq
parent729f52c6be51013c9268e5fc85acbc1091286fdb (diff)
downloadop-kernel-dev-4bd809dbbf177ad0c450d702466b1da63e1b4b7e.zip
op-kernel-dev-4bd809dbbf177ad0c450d702466b1da63e1b4b7e.tar.gz
ext4: don't take the i_mutex lock when doing DIO overwrites
Aligned and overwrite direct I/O can be parallelized. In ext4_file_dio_write, we first check whether these conditions are satisfied or not. If so, we take i_data_sem and release i_mutex lock directly. Meanwhile iocb->private is set to indicate that this is a dio overwrite, and it will be handled in ext4_ext_direct_IO. [ Added fix from Dan Carpenter to fix locking bug on the error path. ] CC: Tao Ma <tm@tao.ma> CC: Eric Sandeen <sandeen@redhat.com> CC: Robin Dong <hao.bigrat@gmail.com> Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Diffstat (limited to 'drivers/devfreq')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud