From patchwork Fri Jan 29 21:38:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jared Hulbert X-Patchwork-Id: 8167661 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 13F8EBEEE5 for ; Fri, 29 Jan 2016 21:38:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FA1020221 for ; Fri, 29 Jan 2016 21:38:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8FD6C20211 for ; Fri, 29 Jan 2016 21:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757017AbcA2ViV (ORCPT ); Fri, 29 Jan 2016 16:38:21 -0500 Received: from mail-pf0-f178.google.com ([209.85.192.178]:34911 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756987AbcA2ViU (ORCPT ); Fri, 29 Jan 2016 16:38:20 -0500 Received: by mail-pf0-f178.google.com with SMTP id 65so48240769pfd.2 for ; Fri, 29 Jan 2016 13:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=dmUvRyKf1nM2q4qNLZpy2XOEuUSbi2OMuCnUvvdLPL8=; b=nDwvVfCH8xwk4kCN1ZysWsK/x/vqKeg1MWsuEZ+mDFDAn4/LqYstCBfxrvidPAoxnq PlXiBnmPOpJGhPaCbuNT3zKKSv6rwxjzjj7KZt1/GBA9UCduDDmh7ba9dZfAyzanmtAD Q3WKRka1K90H5I6cPjk53aug0p3q8HI5m1gU13j9QWF52WVJGtYhy6+qIVlo8eTiF270 b0oPWKtDqRe4wg8GbdA/xEUket/hvDE2VjF98G0P31f9RqVYony4w4CdaDt9oiOvNlg6 0z3mihgPWEnTjBpahmZtL3HsE9M0Sl6F2zGPp+uRtRIikWEHGykLVPG5RMfjDAcPU1MT UdVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=dmUvRyKf1nM2q4qNLZpy2XOEuUSbi2OMuCnUvvdLPL8=; b=WJ+DFvKyD42C8mvmJgKVRT4JMTvl7eDPFoGys/trnx0G0f7ZS8DXFRZ3bu/IHyOujR DPlCReAIfgH5zKReLUuMp+wigEwU6Bd+0GJ6TCn/BypH9flVpq4mbfl2vE+Eyzwm5CMw HQUsmB1hPPtQCxwB5u62eayvLDmW/FASUfSK8fWvLuX57AYn7c0hRLLbEyAAVtSh6mi0 Ag8nynbWLkkpglsjtkvQF2wtvHm+j4hhq53Z6cN7ZBgr4iaYNAPEJimG9TF6Uhq8Xfs9 ykNpOjP0xvLGoJ+VbN3Ilr6tQSEGw6H8WbK28E1FYj2yeov5I5FV2Kyf2fIGG7EuY5Dl LLfA== X-Gm-Message-State: AG10YORo/rF2OtxfDrcTrzd/AOst3dEmCsY17n6kJiCSedcHxosTCrn+jlLTlsRFIyhsyQ== X-Received: by 10.98.64.27 with SMTP id n27mr16876886pfa.58.1454103499876; Fri, 29 Jan 2016 13:38:19 -0800 (PST) Received: from [192.168.1.18] ([108.248.164.76]) by smtp.gmail.com with ESMTPSA id xz6sm25535469pab.42.2016.01.29.13.38.18 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jan 2016 13:38:18 -0800 (PST) To: linux-fsdevel@vger.kernel.org, "Wilcox, Matthew R" , "ross.zwisler@linux.intel.com" From: Jared Hulbert Subject: DAX: bug in COW no page fault? Message-ID: <56ABDBC7.5030703@gmail.com> Date: Fri, 29 Jan 2016 13:38:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Why isn't this required? --- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/dax.c b/fs/dax.c index a7f77e1..30f2abe 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -416,6 +416,7 @@ int __dax_fault(struct vm_area_struct *vma, struct vm_fault error = -EIO; goto out; } + i_mmap_unlock_read(mapping); } return VM_FAULT_LOCKED; }