Whamcloud - gitweb
LU-6378 osd-ldiskfs: unlock inode before attr_init 02/14102/6
authorFan Yong <fan.yong@intel.com>
Tue, 24 Mar 2015 17:21:33 +0000 (01:21 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 28 Apr 2015 05:20:12 +0000 (05:20 +0000)
commitcef4a7fdb1183deaf2cbb34849a3f9f7b9037da1
treecfd449eff8724fabc5f29779917c1c68e6608ce3
parent8f1c8dbe2389e1ef1e1d3387e343fb9a1bb84198
LU-6378 osd-ldiskfs: unlock inode before attr_init

The ldiskfs_create_inode() returns a locked inode to the caller (OSD)
that with I_NEW state, before further initializing the inode's attr
via osd_attr_init(), we should unlock the inode, otherwise, it will
cause some unnecessary dqget operations and affect the performance.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I36755cacc4895775130377da4ca486da08ede895
Reviewed-on: http://review.whamcloud.com/14102
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c