From: bvanassche@acm.org (Bart Van Assche)
Subject: [PATCH] Revert "workqueue: re-add lockdep dependencies for flushing"
Date: Mon, 22 Oct 2018 14:26:32 -0700 [thread overview]
Message-ID: <1540243592.128590.36.camel@acm.org> (raw)
In-Reply-To: <d45d54e8a46028c2b83296c5bf25a89500a289c4.camel@sipsolutions.net>
On Mon, 2018-10-22@23:04 +0200, Johannes Berg wrote:
> When lockdep was added, the networking socket locks also were (mostly)
> fine, recursion there only happened on different types of sockets. Yet,
> lockdep did in fact report issues with it, because originally they
> weren't split into different classes.
>
> Did we remove lockdep again because it was reporting a potential problem
> in the socket lock code?
I do not agree. It is accepted in the kernel community that if locks are
nested that nested locks should always be taken in the same order. There is
no agreement however that the kind of checking implemented by the "crosslock"
code made sense. My understanding is that you are trying to reintroduce
through a backdoor some of the crosslock code. There is scientific evidence
that it is not possible to come up with an algorithm that flags all
potential deadlocks in programs that use completions without reporting false
positives. See e.g. Agarwal, Rahul, and Scott D. Stoller. "Run-time detection
of potential deadlocks for programs with locks, semaphores, and condition
variables." In Proceedings of the 2006 workshop on Parallel and distributed
systems: testing and debugging, pp. 51-60. ACM, 2006.
(http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.436.7823&rep=rep1&type=pdf).
> As I thought I made pretty clear, the report is in fact valid.
I'm surprised that although your patch caused a deadlock to be reported while
no deadlock occurred that you keep insisting that your report is valid. I don't
understand this.
Bart.
next prev parent reply other threads:[~2018-10-22 21:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-22 15:18 [PATCH] Revert "workqueue: re-add lockdep dependencies for flushing" Bart Van Assche
2018-10-22 20:14 ` Johannes Berg
2018-10-22 20:28 ` Johannes Berg
2018-10-22 20:54 ` Bart Van Assche
2018-10-22 21:04 ` Johannes Berg
2018-10-22 21:26 ` Bart Van Assche [this message]
2018-10-23 19:44 ` Johannes Berg
2018-10-23 19:58 ` Johannes Berg
2018-10-23 1:17 ` Bart Van Assche
2018-10-23 19:50 ` Johannes Berg
2018-10-23 20:24 ` Johannes Berg
2018-10-22 21:47 ` Bart Van Assche
2018-10-23 0:43 ` Sagi Grimberg
2018-10-23 19:26 ` Johannes Berg
2018-10-23 21:30 ` Sagi Grimberg
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=1540243592.128590.36.camel@acm.org \
--to=bvanassche@acm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox