From 44b974baec96c515ad6c8761b95f93979604445b Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 18 Sep 1998 21:15:25 +0000 Subject: [PATCH] race condition for async IO. We might be OPENING the swapout file, but the swapout.fd isn't set yet. --- src/store_swapout.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store_swapout.cc b/src/store_swapout.cc index 2e20f02be6..15e694b079 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapout.cc,v 1.31 1998/09/14 21:28:16 wessels Exp $ + * $Id: store_swapout.cc,v 1.32 1998/09/18 15:15:25 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapout Functions * AUTHOR: Duane Wessels @@ -371,6 +371,8 @@ storeSwapOutObjectBytesOnDisk(const MemObject * mem) static int storeSwapOutAble(const StoreEntry * e) { + if (e->swap_status == SWAPOUT_OPENING) + return 1; if (e->mem_obj->swapout.fd > -1) return 1; if (e->mem_obj->inmem_lo > 0) -- 2.47.3