Whamcloud - gitweb
LU-2789 mdt: ensure constant striping during chown() 70/6070/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 16 Apr 2013 22:00:34 +0000 (17:00 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 20 Dec 2013 02:20:52 +0000 (02:20 +0000)
commitc16afc7c5c0ca969e3a5ac93773dffb7531522ab
tree449807214d51509aa625ebf2cf4d527e05de7390
parenta0120ccb3f5f54b0a5375fd8ab3396c7f51cdd02
LU-2789 mdt: ensure constant striping during chown()

Prevent concurrent setstripe and chown() operations on a file by
acquiring mot_lov_mutex in mdt_attr_set(). This is needed to maintain
consistency between the ownership of files and their sub-objects and
to ensure that attribute changes on sub-objects are properly declared.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I75fe3476a284dccde5312a5c3f79b3698610ef25
Reviewed-on: http://review.whamcloud.com/6070
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_reint.c