]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: lustre: statahead: lock leaks if statahead file recreated
authorLai Siyao <lai.siyao@intel.com>
Thu, 10 Nov 2016 17:30:51 +0000 (12:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 15:02:54 +0000 (16:02 +0100)
commite8b237227b15113f9a4f4a93ec5850acb8d5a444
tree8b04354ce09318dd39d10db21daf597384926d2c
parentc7298013ce3042321db4652f72ed1f1dde453129
staging: lustre: statahead: lock leaks if statahead file recreated

During statahead file may be recreated, though this is rare case,
current code will leak the lock, this patch will release lock in
this case.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7232
Reviewed-on: http://review.whamcloud.com/16841
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/statahead.c