Re: [PATCH] mm: remap_file_pages: grab file ref to prevent race while mmaping

2014-05-14 Thread Kirill A. Shutemov
On Tue, May 13, 2014 at 11:35:42PM -0400, Sasha Levin wrote: > A file reference should be held while a file is mmaped, otherwise it might > be freed while being used. > > Suggested-by: Hugh Dickins > Signed-off-by: Sasha Levin Sorry, again. :-/ Acked-by: Kirill A. Shutemov > --- >

Re: [PATCH] mm: remap_file_pages: grab file ref to prevent race while mmaping

2014-05-14 Thread Kirill A. Shutemov
On Tue, May 13, 2014 at 11:35:42PM -0400, Sasha Levin wrote: A file reference should be held while a file is mmaped, otherwise it might be freed while being used. Suggested-by: Hugh Dickins hu...@google.com Signed-off-by: Sasha Levin sasha.le...@oracle.com Sorry, again. :-/ Acked-by:

[PATCH] mm: remap_file_pages: grab file ref to prevent race while mmaping

2014-05-13 Thread Sasha Levin
A file reference should be held while a file is mmaped, otherwise it might be freed while being used. Suggested-by: Hugh Dickins Signed-off-by: Sasha Levin --- mm/mmap.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/mmap.c b/mm/mmap.c index 2a0e0a8..da3c212 100644 ---

[PATCH] mm: remap_file_pages: grab file ref to prevent race while mmaping

2014-05-13 Thread Sasha Levin
A file reference should be held while a file is mmaped, otherwise it might be freed while being used. Suggested-by: Hugh Dickins hu...@google.com Signed-off-by: Sasha Levin sasha.le...@oracle.com --- mm/mmap.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/mmap.c b/mm/mmap.c index