Whamcloud - gitweb
LU-1259 mgs: avoid cancelling IR lock twice
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Tue, 27 Mar 2012 16:28:31 +0000 (09:28 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 May 2012 18:48:50 +0000 (14:48 -0400)
commitd73ed43e41e4c29ed0dacd031bef2fae36d71e68
tree79347bb4b4be3fac6275e5778cc9534ef302da3c
parent5d0201db65d366d8905a28d103a2a9b511c22ca7
LU-1259 mgs: avoid cancelling IR lock twice

There is a race that if IR shared lock is revoked fastly the
completion ast can be called twice with the lock granted. The
IR lock should be cancelled only once in this case.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: Ie1b2742d436fb6f549cfcb25dc50fbbabcd1f008
Reviewed-on: http://review.whamcloud.com/2390
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgs/mgs_handler.c