]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: out of order lock smb v3 locking
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 8 Jul 2011 19:27:22 +0000 (15:27 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 9 Jul 2011 14:40:24 +0000 (07:40 -0700)
commitc49b446ca51f7cef1ae0f04ec475eca6efe367da
tree70e1d7cdbab416bb721712649dfa43e618ed3d87
parent188c7508f5c57418a758f82edb602813feedccbb
Windows: out of order lock smb v3 locking

Do not obtain the smb_rctLock after holding the cm_scache_t->rw
lock.

At most one hold is required in case of lock failure.  Obtain
it as the start of processing and drop it at the end if not required.

Reviewed-on: http://gerrit.openafs.org/4955
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit da6c97678f530ca76334613e229337a75f94e297)

Change-Id: I6b530366c74fd45ba585fd7af4615a1dc96ac055
Reviewed-on: http://gerrit.openafs.org/4960
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/smb3.c