Whamcloud - gitweb
LU-3706 scrub: fix mutex leak in osd_obj_map_recover() 34/7534/4
authorFan Yong <fan.yong@intel.com>
Sat, 10 Aug 2013 07:12:42 +0000 (15:12 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 13 Sep 2013 23:06:51 +0000 (23:06 +0000)
commit0cd76523b7da56efc8695331826fc0e86bce8b0d
treeab127a4a0498cc8d650dddc27df54037fd8889e0
parente089a515efae3391709b997be889ebe0f3306e9d
LU-3706 scrub: fix mutex leak in osd_obj_map_recover()

We forget to release inode::i_mutex on the /O/<seq>/<dx> when meet OI
mapping conflict in osd_obj_map_recover() to recover objects from the
/lost+found to their original places. Such mutex leak will cause the
OI scrub thread or other threads to be hung when access /O/<seq>/<dx>
next time.

Test-Parameters: testlist=sanity-scrub
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Idc3b99aea5591f546a6d33e5d1fe015a2aac0167
Reviewed-on: http://review.whamcloud.com/7534
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_scrub.c