| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 10/12] NFS: Do not serialise O_DIRECT reads and writes |
| From: | Trond Myklebust <trondmy@xxxxxxxxxxxxxxx> |
| Date: | Wed, 15 Jun 2016 15:09:23 +0000 |
| Accept-language: | en-US |
| Cc: | "linux-nfs@xxxxxxxxxxxxxxx" <linux-nfs@xxxxxxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=PrimaryData.onmicrosoft.com; s=selector1-primarydata-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=q1DsR1urGFijXRejw1Dkr7sZsnjgSTPBE3XUmrTCo3U=; b=FSTmMkJT4bA3l8Qpc1HzezQolymWsTJoX9DNmhbqBAeDJscOPtR2+Pq7HfkWpzLqCkXeo1QRYMyuQGb2dbIHp6E3s4R9lt3j9l9DALOalssDx8KBWe9vgiwo1THvlQMpu/xDiGjyDdmd9oxNmXM1LK+iPVbqnqhc6dcTWvNzECE= |
| In-reply-to: | <20160615145638.GC5297@xxxxxxxxxxxxx> |
| References: | <1465931115-30784-5-git-send-email-trond.myklebust@xxxxxxxxxxxxxxx> <1465931115-30784-6-git-send-email-trond.myklebust@xxxxxxxxxxxxxxx> <1465931115-30784-7-git-send-email-trond.myklebust@xxxxxxxxxxxxxxx> <1465931115-30784-8-git-send-email-trond.myklebust@xxxxxxxxxxxxxxx> <1465931115-30784-9-git-send-email-trond.myklebust@xxxxxxxxxxxxxxx> <1465931115-30784-10-git-send-email-trond.myklebust@xxxxxxxxxxxxxxx> <20160615071343.GC4318@xxxxxxxxxxxxx> <755A2A14-C6A9-4737-8335-0A6785490F6D@xxxxxxxxxxxxxxx> <20160615144801.GB18524@xxxxxxxxxxxxx> <C13D01C1-4B83-442A-A0EA-D7624BE8A782@xxxxxxxxxxxxxxx> <20160615145638.GC5297@xxxxxxxxxxxxx> |
| Spamdiagnosticmetadata: | NSPM |
| Spamdiagnosticoutput: | 1:99 |
| Thread-index: | AQHRxm/Hou68eOWUIUa7yE29WUzNT5/qHgaAgAA2wYCAAEgtgP//viqAgABEPgD//8CAgA== |
| Thread-topic: | [PATCH 10/12] NFS: Do not serialise O_DIRECT reads and writes |
|
On 6/15/16, 10:56, "Christoph Hellwig" <hch@xxxxxxxxxxxxx> wrote: >On Wed, Jun 15, 2016 at 02:52:24PM +0000, Trond Myklebust wrote: >> >But XFS allows full parallelism for direct reads and writes as long >> >as there is no more pagecache to flush. But if you have pages in >> >the pagecache you need the exclusive lock to prevent against new >> >pagecache pages being added. >> >> Exactly. So does this. > >So let's avoid bloating the inode with another rw_semaphore, and make >everyones life easier by using the existing lock. As I said earlier, the problem with that is you end up artificially serialising buffered reads and buffered writes. â The reads only need a shared lock in order to protect the I/O mode from flipping to O_DIRECT (and relying on page locks to protect against buffered writes). â The writes need protection against O_DIRECT, they donât need serialisation with other reads, but they do need to be serialised against other buffered writes. Disclaimer The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 10/12] NFS: Do not serialise O_DIRECT reads and writes, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 10/12] NFS: Do not serialise O_DIRECT reads and writes, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 10/12] NFS: Do not serialise O_DIRECT reads and writes, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 10/12] NFS: Do not serialise O_DIRECT reads and writes, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |