Re: kernel BUG at mm/truncate.c:475!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, December 13, 2010 - 3:20 pm

On Sat, 11 Dec 2010 15:14:47 +0100
Miklos Szeredi <miklos@szeredi.hu> wrote:


"restart_addr", please.


That's a pretty old bug, isn't it?  5+ years.


I do think this was premature optimisation.  The open-coded lock is
hidden from lockdep so we won't find out if this introduces potential
deadlocks.  It would be better to add a new mutex at least temporarily,
then look at replacing it with a MiklosLock later on, when the code is
bedded in.

At which time, replacing mutexes with MiklosLocks becomes part of a
general "shrink the address_space" exercise in which there's no reason
to exclusively concentrate on that new mutex!


How hard is it to avoid adding a new lock and using an existing one,
presumablt i_mutex?  Because if we can get i_mutex coverage over
unmap_mapping_range() then I suspect all the
vm_truncate_count/restart_addr stuff can go away?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kernel BUG at mm/truncate.c:475!, Michael Leun, (Tue Nov 30, 11:49 am)
Re: kernel BUG at mm/truncate.c:475!, Hugh Dickins, (Tue Nov 30, 4:00 pm)
Re: kernel BUG at mm/truncate.c:475!, Miklos Szeredi, (Wed Dec 1, 3:25 am)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Wed Dec 1, 4:45 am)
Re: kernel BUG at mm/truncate.c:475!, Miklos Szeredi, (Wed Dec 1, 10:22 am)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Thu Dec 2, 12:41 am)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Thu Dec 2, 1:15 am)
Re: kernel BUG at mm/truncate.c:475!, Miklos Szeredi, (Thu Dec 2, 2:42 am)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Thu Dec 2, 3:57 am)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Fri Dec 3, 12:53 am)
Re: kernel BUG at mm/truncate.c:475!, Miklos Szeredi, (Mon Dec 6, 5:36 am)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Mon Dec 6, 12:43 pm)
Re: kernel BUG at mm/truncate.c:475!, Michael Leun, (Sat Dec 11, 12:50 pm)
Re: kernel BUG at mm/truncate.c:475!, Andrew Morton, (Mon Dec 13, 3:20 pm)
Re: kernel BUG at mm/truncate.c:475!, Hugh Dickins, (Tue Dec 14, 12:31 am)
Re: kernel BUG at mm/truncate.c:475!, Peter Zijlstra, (Tue Dec 14, 2:10 am)
Re: kernel BUG at mm/truncate.c:475!, Peter Zijlstra, (Tue Dec 14, 2:11 am)
Re: kernel BUG at mm/truncate.c:475!, Miklos Szeredi, (Tue Dec 14, 3:45 am)
Re: kernel BUG at mm/truncate.c:475!, Hugh Dickins, (Tue Dec 14, 9:32 pm)
Re: kernel BUG at mm/truncate.c:475!, Miklos Szeredi, (Wed Dec 15, 4:22 am)
Re: kernel BUG at mm/truncate.c:475!, Hugh Dickins, (Wed Dec 15, 5:26 pm)
Re: kernel BUG at mm/truncate.c:475!, Robert Święcki, (Thu Dec 16, 7:50 am)
Re: kernel BUG at mm/truncate.c:475!, Hugh Dickins, (Thu Dec 16, 12:05 pm)