xfs
[Top] [All Lists]

[PATCH] xfs: fix debug_object WARN at xfs_alloc_vextent()

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfs: fix debug_object WARN at xfs_alloc_vextent()
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Thu, 07 Jun 2012 15:44:32 +0800
Cc: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Organization: Oracle
Reply-to: jeff.liu@xxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20
Hello,

There is bug report from Fengguang three days ago at:
http://www.spinics.net/lists/linux-fsdevel/msg55866.html

It looks like a XFS issue, I'd like to forward it to here with my fix at below.

Thanks,
-Jeff

Reported-by: Wu Fengguang <wfg@xxxxxxxxxxxxxxx>
Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>

---
 fs/xfs/xfs_alloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c
index 0f0df27..0be396d 100644
--- a/fs/xfs/xfs_alloc.c
+++ b/fs/xfs/xfs_alloc.c
@@ -2443,7 +2443,7 @@ xfs_alloc_vextent(
        DECLARE_COMPLETION_ONSTACK(done);
 
        args->done = &done;
-       INIT_WORK(&args->work, xfs_alloc_vextent_worker);
+       INIT_WORK_ONSTACK(&args->work, xfs_alloc_vextent_worker);
        queue_work(xfs_alloc_wq, &args->work);
        wait_for_completion(&done);
        return args->result;
-- 
1.7.9

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] xfs: fix debug_object WARN at xfs_alloc_vextent(), Jeff Liu <=