From 9840abd370c4679739b2ae0e9384276bd99c2591 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Fri, 4 Jun 2010 14:33:54 -0700 Subject: [PATCH] Fix a possibel deadlock from synchronizing the superblock. --- bluesky/inode.c | 2 +- bluesky/store-multi.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bluesky/inode.c b/bluesky/inode.c index e15d5b7..5977955 100644 --- a/bluesky/inode.c +++ b/bluesky/inode.c @@ -415,5 +415,5 @@ void bluesky_superblock_flush(BlueSkyFS *fs) bluesky_store_async_submit(async); bluesky_store_async_unref(async); - bluesky_store_sync(fs->store); + //bluesky_store_sync(fs->store); } diff --git a/bluesky/store-multi.c b/bluesky/store-multi.c index f0b1e5e..5687de7 100644 --- a/bluesky/store-multi.c +++ b/bluesky/store-multi.c @@ -42,8 +42,6 @@ static void multistore_completion_handler(BlueSkyStoreAsync *async, { g_mutex_lock(top_async->lock); - g_print("Completed a subrequest for %s\n", async->key); - /* This might be the second request to finish; in that case we don't do * anything. */ if (top_async->status == ASYNC_RUNNING) { @@ -69,7 +67,6 @@ static void multistore_submit(gpointer store, BlueSkyStoreAsync *async) switch (async->op) { case STORE_OP_GET: - g_print("Received multirequest for %s\n", async->key); async->status = ASYNC_RUNNING; async->exec_time = bluesky_now_hires(); for (int i = 0; i < 2; i++) { -- 2.20.1