Whamcloud - gitweb
LU-1290 quota: transfer quota in osd_attr_set()
authorNiu Yawei <niu@whamcloud.com>
Fri, 6 Apr 2012 11:08:28 +0000 (04:08 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 3 May 2012 20:54:05 +0000 (16:54 -0400)
commit8bd064273746bc51826af4a795be79a5cedef265
treea9dff37e7b52f291d922ff376eb31691fddeacc6
parent4fca2a0c7ec9a447fbaea6eb3411e07225150a0f
LU-1290 quota: transfer quota in osd_attr_set()

Move the ll_vfs_dquot_transfer() out of the osd_inode_setattr(),
since ll_vfs_dquot_transfer() will hold the dqptr_sem, whereas
the osd_inode_setattr() is protected by spin lock oo_guard.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ib36231fb30eabfd39fe0baf16e982357113c6121
Reviewed-on: http://review.whamcloud.com/2463
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c