Whamcloud - gitweb
LU-7549 mdt: cancel the atomic lock in the same thread 77/17577/7
authorDi Wang <di.wang@intel.com>
Sat, 12 Dec 2015 08:36:08 +0000 (00:36 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 5 Jan 2016 00:49:19 +0000 (00:49 +0000)
commit6804fa782f66666b48aeab993fce11a7f88c9c0e
treec9410e907ea0cfc1242f17a69d3abd6f5d22c722
parent2f033b088745bb98eeeed33c58518fddd16397db
LU-7549 mdt: cancel the atomic lock in the same thread

If cross-MDT lock has ATOMIC_CB flag, let's cancel it in
the same thread as blocking_ast(), to make sure the lock
is cancelled completely after unlock().

This will be used when MDT tries to cancel remote locks
during migration (see mdt_lock_objects_in_linkea()).
Only if the remote lock is cancelled completely, then
the next trylock will succeed.

Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: Ib23eb8eb312252e6eca680d08f8fcd89cf29339c
Reviewed-on: http://review.whamcloud.com/17577
Tested-by: Jenkins
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_reint.c