From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] deadlock when swapping to FAT
Date: Fri, 13 Mar 2009 01:05:16 +0900 [thread overview]
Message-ID: <87zlfqohfn.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <Pine.LNX.4.64.0903120819010.26206@hs20-bc2-1.build.redhat.com> (Mikulas Patocka's message of "Thu, 12 Mar 2009 08:30:05 -0400 (EDT)")
Mikulas Patocka <mpatocka@redhat.com> writes:
> swapon will deadlock when an attempt to swap to a file on FAT filesystem
> is made. swapon holds i_mutex and FAT bmap is attempting to take it again.
>
> This bug was introduced somewhere between 2.6.27 and 2.6.28.
>
> No other filesystem is taking i_mutex in bmap, so I removed it as well.
>
> Note that there are many other cases where bmap can race with truncate in
> almost all the filesystems. They don't impose an immediate threat because
> bmap can be only called by root. These problems should be solved in a
> generic way, not in individual filesystems.
Thanks. This was fixed recently with a bit different way.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2009-03-12 16:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 12:30 Mikulas Patocka
2009-03-12 16:05 ` OGAWA Hirofumi [this message]
2009-03-15 1:54 ` Mikulas Patocka
2009-03-15 3:22 ` OGAWA Hirofumi
2009-03-17 12:23 ` Mikulas Patocka
2009-03-17 16:08 ` OGAWA Hirofumi
2009-03-19 19:34 ` Mikulas Patocka
2009-03-19 22:27 ` OGAWA Hirofumi
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=87zlfqohfn.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=mpatocka@redhat.com \
/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®