[Ocfs2-devel] [PATCH] ocfs2: lock the page in __ocfs2_page_mkwrite() -v2
Wengang Wang
wen.gang.wang at oracle.com
Mon Dec 6 17:55:50 PST 2010
Hi Mark,
Do you have any comment on this patch? Seems Joel wants your ACK.
regards,
wengang.
On 10-11-18 14:05, Joel Becker wrote:
> On Thu, Nov 18, 2010 at 11:52:14PM +0800, Wengang Wang wrote:
> > Lock the page in __ocfs2_page_mkwrite(). Or we may get -EINVAL error
> > from ocfs2_grab_pages_for_write() if the page(page cache) gets truncated
> > while someone is flushing the pagecache. In the original code, we are
> > checking mapping earlier in __ocfs2_page_mkwrite() but we don't lock it.
> > so the mapping can change during flushing pagecache.
>
> This looks like a good implementation of the concept. I'm still
> wary of holding the page lock that long, though I *think* it's the right
> thing.
> Mark, do you have any thoughts on this? I believe this is
> originally your code.
>
> Joel
>
> --
>
> "Not being known doesn't stop the truth from being true."
> - Richard Bach
>
> Joel Becker
> Senior Development Manager
> Oracle
> E-mail: joel.becker at oracle.com
> Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list