Whamcloud - gitweb
LU-4002 hsm: avoid layout lock on unlink and rename onto 92/7792/3
authorJohn L. Hammond <johnlockwoodhammond@gmail.com>
Sat, 28 Sep 2013 00:04:37 +0000 (17:04 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 3 Oct 2013 04:49:15 +0000 (04:49 +0000)
commit0dd85e9ace1e70e60c721eac94ece0cc8a1fccc2
tree4e00b9be6dc06c4968d75c51a77a37794a61c473
parentd6701a7aad64a6286055abee88d0c34c0a490927
LU-4002 hsm: avoid layout lock on unlink and rename onto

In mdt_reint_unlink() and mdt_reint_rename() do not take a FULL inode
lock on the file to be unlinked or the rename target. This avoids a
potential deadlock when unlinking a file under HSM restore.

Signed-off-by: John L. Hammond <johnlockwoodhammond@gmail.com>
Change-Id: Id6b11b9f5c1433221670d154d65d9cec30e260af
Reviewed-on: http://review.whamcloud.com/7792
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_reint.c