Whamcloud - gitweb
b=16774
authorzhanghc <zhanghc>
Tue, 7 Jul 2009 16:08:58 +0000 (16:08 +0000)
committerzhanghc <zhanghc>
Tue, 7 Jul 2009 16:08:58 +0000 (16:08 +0000)
commit399f1d12697590860476422a5484eaef6db9ac16
treed695253e1d3ed208d2803722cee9536dd1c967dc
parente80afff989c43e0db732d5769ddfa90ecb088954
b=16774

cache the extent lock gotten before doing I/O in "ll_file_aio_read"
and "ll_file_aio_write", then "ll_read_page", "ll_read_ahead_page"
and "ll_writepage" will save much time spent on "ldlm_lock_match"
(in cache_add_extent) to find the appropriate extent lock

1, using current->journal_info to store the locks(struct ll_thread_data)
2, replace o_reget_short_lock, o_release_short_lock with o_get_lock in obd_ops

i=johann@sun.com
i=oleg.drokin@sun.com
lnet/include/libcfs/libcfs.h
lnet/libcfs/linux/linux-mem.c