From: Linus Torvalds <torvalds@linux-foundation.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Remove BKL from FAT/VFAT/MSDOS (v1) (was Re: Fw: Regression caused by bf726e "semaphore: fix,")
Date: Fri, 16 May 2008 15:58:22 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.1.10.0805161552510.3020@woody.linux-foundation.org> (raw)
In-Reply-To: <alpine.LFD.1.10.0805161514570.3020@woody.linux-foundation.org>
On Fri, 16 May 2008, Linus Torvalds wrote:
>
> [...] but I do think this is at
> least an interesting starting point, and it's at least not "totally
> obviously broken".
To clarify: lock_super() is actually a much *stronger* lock than
lock_kernel(), which is why testing is actually interesting: the locking
hasn't been weakened, it's actually become much stricter (because unlike
the kernel lock, the superblock lock is kept over scheduling events, and
doesn't silently nest).
So the most likely failure case is not that some locking went away and
you'd race on the data structures, it's that something deadlocks on itself
if the locking isn't right.
There could be some implicit kernel lock I missed (ie something that acts
like the "ioctl" callback I already mentioned), of course, so I'm not
going to swear myself blue in the face that there isn't a new race, but on
the whole this patch should be pretty safe from the angle that at least
the obvious locking bugs should cause deadlocks, not race conditions.
And if you enable lockdep, the deadlocks aren't silent deaths, but clear
"this is where you took it, and here is where you deadlocked due to
nesting" reports in dmesg. So this should be eminently debuggable even by
almost total newbies that are just interested in BKL removal.
Linus
next prev parent reply other threads:[~2008-05-16 22:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080510121020.f33c83f7.akpm@linux-foundation.org>
[not found] ` <20080511073338.GA17137@elte.hu>
[not found] ` <20080511075522.GA18214@elte.hu>
[not found] ` <Pine.LNX.4.64.0805111150250.32758@titan.stealer.net>
[not found] ` <20080511125731.GA28174@elte.hu>
[not found] ` <alpine.LFD.1.10.0805110941540.3330@woody.linux-foundation.org>
[not found] ` <20080511111210.77858eb4.akpm@linux-foundation.org>
[not found] ` <alpine.LFD.1.10.0805111221070.3188@woody.linux-foundation.org>
[not found] ` <alpine.LFD.1.10.0805111243250.3188@woody.linux-foundation.org>
[not found] ` <20080511235112.GA16101@elte.hu>
[not found] ` <alpine.LFD.1.10.0805120155490.3514@apollo.tec.linutronix.de>
[not found] ` <alpine.LFD.1.10.0805120723440.3188@woody.linux-foundation.org>
[not found] ` <alpine.LFD.1.10.0805121659470.3514@apollo.tec.linutronix.de>
[not found] ` <alpine.LFD.1.10.0805121324410.3019@woody.linux-foundation.org>
[not found] ` <alpine.LFD.1.10.0805161025510.3255@apollo.tec.linutronix.de>
[not found] ` <alpine.LFD.1.10.0805160906580.2941@woody.linux-foundation.org>
[not found] ` <alpine.LFD.1.10.0805160950180.2941@woody.linux-foundation.org>
2008-05-16 22:36 ` Linus Torvalds
2008-05-16 22:58 ` Linus Torvalds [this message]
2008-05-17 0:25 ` OGAWA Hirofumi
2008-05-17 1:31 ` Linus Torvalds
2008-05-29 20:45 ` Tony Luck
2008-05-29 21:37 ` Linus Torvalds
2008-05-29 23:13 ` Jonathan Corbet
2008-05-29 23:17 ` Linus Torvalds
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=alpine.LFD.1.10.0805161552510.3020@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=akpm@linux-foundation.org \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®