]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-asyncstore-again-20080301
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 1 Mar 2008 19:00:19 +0000 (19:00 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 1 Mar 2008 19:00:19 +0000 (19:00 +0000)
LICENSE MIT

must write the entire asyncstoresize otherwise dirty buffers are left
for writing by buf_IncrSync thread.

(cherry picked from commit af2318cfde026f5dc6b479089689dba63f7b8abc)

src/WINNT/afsd/smb.c

index 3708e238075fb702de3d9271feb64f72adff11e5..4c0c0cd056a94d45702f155aff4fdf98fcb007d5 100644 (file)
@@ -6730,7 +6730,7 @@ long smb_WriteData(smb_fid_t *fidp, osi_hyper_t *offsetp, afs_uint32 count, char
                 lock_ReleaseMutex(&scp->mx);
                 cm_QueueBKGRequest(scp, cm_BkgStore, writeBackOffset.LowPart,
                                     writeBackOffset.HighPart, 
-                                    *writtenp & ~(smb_AsyncStoreSize-1), 0, userp);
+                                    smb_AsyncStoreSize, 0, userp);
                 /* cm_SyncOpDone is called at the completion of cm_BkgStore */
             }
         } else {