diff options
author | Jinshan Xiong <jinshan.xiong@intel.com> | 2016-06-05 23:28:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-07 22:39:41 -0700 |
commit | 966c4a8f8029a595a5e1840d51309ac417bb4234 (patch) | |
tree | c677514e7a8f8d46eee528899e52b38630a16330 /drivers/macintosh/mediabay.c | |
parent | ecd4df4a7a3e4e2c58ce39abb0654b2c3cd1a3c6 (diff) | |
download | op-kernel-dev-966c4a8f8029a595a5e1840d51309ac417bb4234.zip op-kernel-dev-966c4a8f8029a595a5e1840d51309ac417bb4234.tar.gz |
staging/lustre/llite: define per open file cache for ll_cl_context
In ll_readpage and ll_write_begin, it needs to find out the cl_env
and cl_io, a.k.a ll_cl_context, when the IO is initialized. It used
to call cl_env_get() to figure it out but turned out to be contended
if multiple threads are doing IO.
In this patch, a per open file ll_cl_context cache is created. When
IO type of CIT_READ, CIT_WRITE and CIR_FAULT is initialized, it will
add a ll_cl_context into the cache maintained in ll_file_data. In this
case, the ll_cl_context can be found in ll_readpage and ll_write_begin
later.
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-on: http://review.whamcloud.com/10503
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5108
Reviewed-on: http://review.whamcloud.com/10955
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5260
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/macintosh/mediabay.c')
0 files changed, 0 insertions, 0 deletions