From: Zdenek Kabelac <zkabelac@redhat.com>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: dm-devel@redhat.com, Stephen Boyd <sboyd@codeaurora.org>,
"Alasdair G. Kergon" <agk@redhat.com>
Subject: Re: [PATCH] dm-snapshot: workaround for a lockdep warning
Date: Wed, 18 Sep 2013 21:07:43 +0200 [thread overview]
Message-ID: <5239F9FF.2010407@redhat.com> (raw)
In-Reply-To: <alpine.LRH.2.02.1309181156230.14936@file01.intranet.prod.int.rdu2.redhat.com>
Dne 18.9.2013 17:57, Mikulas Patocka napsal(a):
>
>
> On Wed, 18 Sep 2013, Zdenek Kabelac wrote:
>
>> Dne 18.9.2013 02:08, Mikulas Patocka napsal(a):
>>>
>>>
>>> On Tue, 17 Sep 2013, Mikulas Patocka wrote:
>>>
>>>> BTW. this patch is no longer needed on 3.11 because md->io_lock was
>>>> removed there, so the false lockdep warning doesn't happen.
>>>>
>>>> So we need to get this patch to stable trees 3.5 to 3.10, but not
>>>> upstream. How to push the patch there without pushing it upstream?
>>>>
>>>> Mikulas
>>>
>>> It's more complicated than that - the original Zdenek's report shows that
>>> the false warning happened on kernel "3.11.1-300.fc20.x86_64+debug". But I
>>> am not able to reproduce the bug on 3.11, I only reproduced it on 3.5-3.10
>>> kernels.
>>>
>>> Zdenek, could you reproduce the bug on kernel 3.11?
>>>
>>> Mikulas
>>>
>>
>>
>> Since I do not have clean 3.11 at my hands - I've reproduced it with my -rc6
>> kernel (few patches based on 8495e9c4a9616c9d19f23182d0536485902259db)
>> With enabled kmemleak=on lockdep.prove_locking=1 lockdep.lock_stat=1.
>
> So - try this patch and tell me if it fixes the problem:
>
> Index: linux-2.6-devel/drivers/md/dm-snap-persistent.c
> ===================================================================
> --- linux-2.6-devel.orig/drivers/md/dm-snap-persistent.c 2013-05-10 18:27:31.132358000 +0200
> +++ linux-2.6-devel/drivers/md/dm-snap-persistent.c 2013-09-17 18:41:39.023940000 +0200
> @@ -256,7 +256,7 @@
> */
> INIT_WORK_ONSTACK(&req.work, do_metadata);
> queue_work(ps->metadata_wq, &req.work);
> - flush_work(&req.work);
> + flush_workqueue(ps->metadata_wq);
>
> return req.result;
> }
>
Yes - this seems to eliminate reported INFO.
Though I'm getting curious why some tests are running much much much slower
when kmemleak and lockdep is in use.
Zdenek
next prev parent reply other threads:[~2013-09-18 19:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 20:47 [PATCH] dm-snapshot: workaround for a lockdep warning Mikulas Patocka
2013-09-17 23:24 ` Mikulas Patocka
2013-09-18 0:08 ` Mikulas Patocka
2013-09-18 6:57 ` Zdenek Kabelac
2013-09-18 15:57 ` Mikulas Patocka
2013-09-18 19:07 ` Zdenek Kabelac [this message]
2013-09-18 23:14 ` Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5239F9FF.2010407@redhat.com \
--to=zkabelac@redhat.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=mpatocka@redhat.com \
--cc=sboyd@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.