Whamcloud - gitweb
b=16774
authorzhanghc <zhanghc>
Tue, 7 Jul 2009 16:09:41 +0000 (16:09 +0000)
committerzhanghc <zhanghc>
Tue, 7 Jul 2009 16:09:41 +0000 (16:09 +0000)
commit7c4e22fb96aedddf0995c8cf28174dd264745075
treeb4d22b25642479c671e65c7f602e06fce27daa16
parent269d635983d578e622ef0a329e4dc070034c9814
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
18 files changed:
lustre/include/lustre_dlm.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/liblustre/rw.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/llite_mmap.c
lustre/llite/rw.c
lustre/lov/lov_obd.c
lustre/lov/lov_request.c
lustre/mgc/mgc_request.c
lustre/obdclass/lprocfs_status.c
lustre/obdecho/echo_client.c
lustre/osc/cache.c
lustre/osc/osc_request.c