Windows: only retry ALLBUSY for five minutes
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 8 May 2013 17:08:30 +0000 (13:08 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 8 May 2013 21:21:23 +0000 (14:21 -0700)
commit663f32e93ec2d17ca59c64c8115cd51183ea3629
treecb8c9f9034579084a9fddfd6be4fced253534b26
parenta63e6747abd33fef40da16312dfc22d052bffd00
Windows: only retry ALLBUSY for five minutes

Add a volbusyCount field to cm_req_t.  Increment the count each time
CM_ERROR_ALLBUSY is processed by cm_Analyze for a given request.
Wait 15 seconds between retries and retry up to 20 times and then
fail.  This prevents requests from blocking for a volume that isn't
going to come back online for hours.

Change-Id: I25e68565700dddceebecedf552d1e04cbe39b22a
Reviewed-on: http://gerrit.openafs.org/9876
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/cm_conn.c
src/WINNT/afsd/cm_conn.h