Whamcloud - gitweb
LU-6449 hsm: handle completions with non-existent objects 12/22212/3
authorBruno Faccini <bruno.faccini@intel.com>
Mon, 29 Aug 2016 13:20:48 +0000 (15:20 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:40:32 +0000 (05:40 +0000)
commit4465f1cf50dc16b37a9ea23efec78b17fd1936eb
tree96162f557801330fd2c2bdd600b8a46a6fbc2090
parent1cf11e1cf9a55fa71c873a5f485be4b63e3a5e39
LU-6449 hsm: handle completions with non-existent objects

In hsm_cdt_request_completed() release the layout lock for a completed
restore regardless of whether the object existed. Rewrite
hsm_swap_layouts() to accept the already found object rather than its
FID. Add a comment to mdt_object_unlock() that the object passed may
be NULL.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I571df2dab25822ba5a4e40c60018871051140f93
Reviewed-on: https://review.whamcloud.com/22212
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_handler.c