lkml.org 
[lkml]   [2009]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] deadlock when swapping to FAT
Date
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>


\
 
 \ /
  Last update: 2009-03-12 17:07    [W:0.062 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site