windows-asyncstore-again-20080301
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 1 Mar 2008 18:58:54 +0000 (18:58 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 1 Mar 2008 18:58:54 +0000 (18:58 +0000)
LICENSE MIT

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

src/WINNT/afsd/smb.c

index 70e9dc3..6cb1fa5 100644 (file)
@@ -6430,7 +6430,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 {