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 12:14:45 +0000 (05:14 -0700)
commitda6c97678f530ca76334613e229337a75f94e297
tree4e75023756ea8f82692c70ab11d75ef29adfc438
parent3505c444f681c8bfed3638b7393f3f40449492b5
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.

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