Whamcloud - gitweb
LU-4403 mds: extra lock during resend lock lookup. 80/8680/4
authorwang di <di.wang@intel.com>
Mon, 30 Dec 2013 16:59:10 +0000 (08:59 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 17 Jan 2014 23:29:08 +0000 (23:29 +0000)
commit96dba12553f1fab5344f5eb7346181bee8e1ea59
treec7a852f48aec35114152e9d0c2a12c3a824141d7
parentdd9b9c821c52c6912157a9a6a3f31e354fed9c55
LU-4403 mds: extra lock during resend lock lookup.

1. If the request does not require open lock, MDT does not
need to search the lock in exp_hash_lock list, because the MDT
will release the lock anyway, and it can always re-enqueue the
request during resend.

2. Lock the resource when the MDS is trying to lookup the lock for
resend request(in mdt_intent_fixup_resent). Otherwise, if the
lock is being released, fixup_resent will return a released lock,
which will cause LBUG when this lock is being released later.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ice5a75f9a4cc3bcb45f8d54cf809b4a272805804
Reviewed-on: http://review.whamcloud.com/8680
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c