Whamcloud - gitweb
LU-2442 kernel: protect i_dquot with i_lock
authorLai Siyao <laisiyao@whamcloud.com>
Wed, 9 Jan 2013 07:57:47 +0000 (15:57 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 1 Apr 2013 15:46:02 +0000 (11:46 -0400)
commit6df197d4d210dcb1b34816f4ce4bdf90b48bcaba
tree0dcbf5fc5a3d141f70f6ce7433bd77a1788f546c
parentb43baf00c0e0845e9bd3f2e7efb39dbcc874cca8
LU-2442 kernel: protect i_dquot with i_lock

Remove dqptr_sem (but kept in struct quota_info to keep kernel ABI
unchanged), and the functionality of this lock is implemented by
other locks:
* i_dquot is protected by i_lock, however only this pointer, the
  content of this struct is by dq_data_lock.
* Q_GETFMT is now protected with dqonoff_mutex instead of dqptr_sem.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I6be343fb7e431bb3b0ce68066a36f621ebdd9df5
Reviewed-on: http://review.whamcloud.com/5010
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/kernel_patches/patches/replace_dqptr_sem.patch [new file with mode: 0644]
lustre/kernel_patches/series/2.6-rhel6.series