]> git.karo-electronics.de Git - linux-beck.git/commit
staging: lustre: lmv: release locks if lmv_intent_lock() fails
authorJohn L. Hammond <john.hammond@intel.com>
Sun, 18 Sep 2016 20:37:13 +0000 (16:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Sep 2016 07:37:45 +0000 (09:37 +0200)
commit620f086d9ae2e4b47c67ac05b76153dfc30d0b1f
tree862c481fb84db596a2e20bd4011f011041e695d9
parent60deafeae486f8e6b1b4cc781214521e615c9459
staging: lustre: lmv: release locks if lmv_intent_lock() fails

In lmv_intent_lock() if we will return an error then first release any
locks referenced by the intent.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5431
Reviewed-on: http://review.whamcloud.com/11319
Reviewed-by: wang di <di.wang@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@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/lmv/lmv_intent.c