Linux: Fix lock ordering
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 16 Nov 2009 22:52:01 +0000 (22:52 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 18 Nov 2009 13:15:27 +0000 (05:15 -0800)
commita2744cab12c87a8c42ba40a9f186a1f05c6886f8
tree757f502a41d9870f282b7837bf5d2e8ac9c00b83
parent22541ea8323434cc555d71daf3c90b66e34c7c87
Linux: Fix lock ordering

The inode mutex (or semaphore) should be held before acquiring the
alloc semaphore. Fix the lock ordering to avoid theoretical deadlocks.

Change-Id: Ifc572083dc92fff51be6785b0bcc92152fab1d73
Reviewed-on: http://gerrit.openafs.org/835
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_file.c