Re: Race condition in storeClose()

From: Andres Kroonmaa <andre@dont-contact.us>
Date: Sat, 25 Nov 2000 02:17:28 +0200

 guys, please try this patch who is using aufs.
 with it, I'm having less crashes ;), and those that come
 seem to be something else...

Index: store_io_aufs.c
===================================================================
RCS file: /cvsroot/squid/squid/src/fs/aufs/store_io_aufs.c,v
retrieving revision 1.3
diff -u -r1.3 store_io_aufs.c
--- store_io_aufs.c 2000/11/11 09:40:03 1.3
+++ store_io_aufs.c 2000/11/24 21:42:51
@@ -143,6 +143,8 @@
         sio->swap_dirn, sio->swap_filen, aiostate->fd);
     if (storeAufsSomethingPending(sio)) {
+ if (aiostate->flags.reading)
+ aioCancel(aiostate->fd);
         aiostate->flags.close_request = 1;
         return;
     }
     storeAufsIOCallback(sio, DISK_OK);

------------------------------------
 Andres Kroonmaa <andre@online.ee>
 Delfi Online
 Tel: 6501 731, Fax: 6501 708
 Pärnu mnt. 158, Tallinn,
 11317 Estonia
Received on Fri Nov 24 2000 - 17:21:11 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:00 MST