Linux: always use afs_maybe_unlock_kernel
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 7 Nov 2009 15:51:52 +0000 (10:51 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Sun, 8 Nov 2009 16:25:09 +0000 (08:25 -0800)
commit457303440042ad43e61652b6ca11c84fab390b82
tree9514612a436b8159ed082f846e373d61fab49212
parent09c4c1978b8901cac0191900c8679095b7e53e6d
Linux: always use afs_maybe_unlock_kernel

In one error case in afs_linux_lookup unlock_kernel() is called
directly instead of using the conditional "maybe" form.
If the config is such that the BKL is not taken, this can result
in an attempt to unlock when the lock has not been taken, and
can cause an oops.

Change-Id: I27d5db58e9b9d45d925b24e27bc43960499c6ead
Reviewed-on: http://gerrit.openafs.org/790
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_vnodeops.c