From: Jeffrey Altman Date: Wed, 20 Mar 2013 14:08:21 +0000 (-0400) Subject: Windows: buf_RDRBuffersExist and cm_directIO X-Git-Tag: upstream/1.8.0_pre1^2~1283 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d3c04329a396cc82a71321bb209b783a1524018e;p=packages%2Fo%2Fopenafs.git Windows: buf_RDRBuffersExist and cm_directIO If 'cm_directIO' is true, then no RDR buffers exist. Return immediately, do not pass 'Go', and do not lock and walk the buffer hash table. Change-Id: I9c6499d429d7591c8bd67ce3077ff4c4e7d6d62d Reviewed-on: http://gerrit.openafs.org/9637 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_buf.c b/src/WINNT/afsd/cm_buf.c index d35fbbe2d..a3c70a5cd 100644 --- a/src/WINNT/afsd/cm_buf.c +++ b/src/WINNT/afsd/cm_buf.c @@ -2497,7 +2497,7 @@ long buf_RDRBuffersExist(cm_fid_t *fidp) afs_uint32 i; long found = 0; - if (!RDR_Initialized) + if (!RDR_Initialized || cm_directIO) return 0; i = BUF_FILEHASH(fidp);