Whamcloud - gitweb
LU-2703 osc: cancel lock outside of spinlock
authorHongchao Zhang <hongchao.zhang@intel.com>
Fri, 8 Feb 2013 17:05:13 +0000 (01:05 +0800)
committerJohann Lombardi <johann.lombardi@intel.com>
Tue, 12 Feb 2013 09:53:38 +0000 (04:53 -0500)
commit8e9971aa38dc8e2bc88dda1f507c790abafcfdf4
tree87a767aa7926c962978dc10a424e19aeeb2574a9
parentb22bdfa1b901e97a59b4666a5a820618d8257f0e
LU-2703 osc: cancel lock outside of spinlock

during calling *_ap_completion, there is a ldlm lock needed to be
cancelled if the page belongs to readahead. this patch move the
cancellation out of the spin_lock cl_loi_list_lock for it is a big
operation containing lock acquisition (mutex) and memory allocation.

Change-Id: Iecd4c27d405ffa968cc74f264dfc48cb2e2f5671
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: http://review.whamcloud.com/5285
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_net.h
lustre/include/obd_ost.h
lustre/llite/rw.c
lustre/osc/osc_request.c