Whamcloud - gitweb
ORNL-24 skip unnecessary client obj hash lookup
authorFan Yong <yong.fan@whamcloud.com>
Sun, 9 Oct 2011 14:27:51 +0000 (22:27 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Oct 2011 23:20:41 +0000 (19:20 -0400)
commit7265c5d9e5327e48d7b80b0c11bc3532a2c55ecf
treebf31d31ca0b4f5a1075953a52abb6948ea4d1691
parent93b6adce588ab0aa6203f980cdfca35a19887d00
ORNL-24 skip unnecessary client obj hash lookup

The client-side object will be initialized when inode is established
in memory. Such object will be inserted into global hash table for
further using. The caller follows "lookup-alloc-lookup-insert". It is
standard, but maybe unnecessary for some cases. If it is sure that
there is only one caller will insert the new established object, then
we can skip the two lookup, and "alloc-insert" directly.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: Ie173c57627b2e5b4ed9b8a93f368d88ba8e54c31
Reviewed-on: http://review.whamcloud.com/1225
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lu_object.h
lustre/lclient/lcommon_cl.c
lustre/obdclass/lu_object.c