From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Andrea Arcangeli <andrea@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: nfs MAP_SHARED corruption fix
Date: Wed, 9 May 2001 09:00:32 +0200 [thread overview]
Message-ID: <15096.60176.549962.187256@charged.uio.no> (raw)
In-Reply-To: <20010509044826.B2506@athlon.random>
In-Reply-To: <20010508160050.F543@athlon.random> <shs3dafvpcx.fsf@charged.uio.no> <20010509044826.B2506@athlon.random>
>>>>> " " == Andrea Arcangeli <andrea@suse.de> writes:
> On Tue, May 08, 2001 at 05:21:02PM +0200, Trond Myklebust
> wrote:
>> AFAICs this fix will clearly deadlock...
> yeah, it didn't triggered because it probably needs to be the
> same page writepaged and in the dirty list at the same time. I
> hooked it very deep into the writeback logic to keep it generic
> (it wasn't going to add a significant overhead) but it didn't
> need to be _that_ deep.
> Even worse I think it was partly wrong because it was only in
> the close(2) path but not in the fput path that is the one
> walked by munmap.
> This looks better to me, what do you think?
Just 2 comments.
- You should use nfs_wb_all() here rather than nfs_wb_file() since
writepage() unfortunately can't initialize the NFS writeback structure
with the correct vma->vm_file.
- Are we allowed to protect the filemap_fdatasync() + nfs_wb_all() by
grabbing the inode->i_sem in nfs_file_close_vma()? If so, this should
be done as well.
Otherwise, that patch looked fine to me... I'll test it out...
Cheers,
Trond
next prev parent reply other threads:[~2001-05-09 7:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-08 14:00 nfs MAP_SHARED corruption fix Andrea Arcangeli
2001-05-08 15:21 ` Trond Myklebust
2001-05-08 15:38 ` Kurt Garloff
2001-05-09 7:30 ` Trond Myklebust
2001-05-09 13:25 ` Andrea Arcangeli
2001-05-09 22:02 ` Marcelo Tosatti
2001-05-10 0:08 ` Andrea Arcangeli
2001-05-09 22:38 ` Marcelo Tosatti
2001-05-10 1:16 ` Andrea Arcangeli
2001-05-10 0:00 ` Marcelo Tosatti
2001-05-10 10:11 ` Trond Myklebust
2001-05-10 10:14 ` Trond Myklebust
2001-05-09 2:48 ` Andrea Arcangeli
2001-05-09 7:00 ` Trond Myklebust [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-05-09 10:55 Kurt Garloff
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=15096.60176.549962.187256@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.