From patchwork Mon Feb 26 16:50:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boaz Harrosh X-Patchwork-Id: 10242789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC457605F3 for ; Mon, 26 Feb 2018 16:54:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A92712A1B8 for ; Mon, 26 Feb 2018 16:54:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97BB12A1C4; Mon, 26 Feb 2018 16:54:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 637F52A1B9 for ; Mon, 26 Feb 2018 16:54:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4755620955F3B; Mon, 26 Feb 2018 08:48:28 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2620:10a:4005:8000:2306::c; helo=mx143.netapp.com; envelope-from=boaz.harrosh@netapp.com; receiver=linux-nvdimm@lists.01.org Received: from mx143.netapp.com (mx143.netapp.com [IPv6:2620:10a:4005:8000:2306::c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8D7C7209574E2 for ; Mon, 26 Feb 2018 08:48:26 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.47,397,1515484800"; d="scan'208";a="245206939" Received: from vmwexchts01-prd.hq.netapp.com ([10.122.105.12]) by mx143-out.netapp.com with ESMTP; 26 Feb 2018 08:54:30 -0800 Received: from VMWEXCCAS04-PRD.hq.netapp.com (10.122.105.20) by VMWEXCHTS01-PRD.hq.netapp.com (10.122.105.12) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 26 Feb 2018 08:51:06 -0800 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (10.120.60.153) by VMWEXCCAS04-PRD.hq.netapp.com (10.122.105.20) with Microsoft SMTP Server (TLS) id 15.0.1320.4 via Frontend Transport; Mon, 26 Feb 2018 08:51:06 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6dypjyExK4vNyjZoNls8ofVMCABG9aL5T95re9W2oCs=; b=TqspM5DYJ1k9aIsdvjx76AZXEulHxBmfJOUnzNOsQxiNsJ6iR0KbHoKE8JGstq2h7goMnt2IRYtnw2/pr3e2/v4QK0cOe9Rt+jiPRPHU3q8jFnnnHz+EjTQ2dA7hquOutax1nJYQLzb6BCV2uYsl0rvT+7zyqLxDt9/Z7bwp030= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Boaz.Harrosh@netapp.com; Received: from [10.0.0.5] (207.232.55.62) by DM5PR06MB3083.namprd06.prod.outlook.com (2603:10b6:4:3f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Mon, 26 Feb 2018 16:51:02 +0000 To: Dan Williams , linux-fsdevel , linux-nvdimm From: Boaz Harrosh Subject: [PATCH] dax: ->direct_access does not sleep anymore Message-ID: <6a5a6353-2714-8eb6-2566-a4384a95db0b@netapp.com> Date: Mon, 26 Feb 2018 18:50:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-Originating-IP: [207.232.55.62] X-ClientProxiedBy: HE1PR06CA0157.eurprd06.prod.outlook.com (2603:10a6:7:16::44) To DM5PR06MB3083.namprd06.prod.outlook.com (2603:10b6:4:3f::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5a7a968e-72f4-4518-cb94-08d57d391fb9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7193020); SRVR:DM5PR06MB3083; X-Microsoft-Exchange-Diagnostics: 1; DM5PR06MB3083; 3:u9+jWwWMSM3TgAdYiICLO8j5P+95Ou+C9CJyHaRYc6S7kTIP6eVWZIoonwHeefZFxsSlTNrFdKklf7xc2Ltesfr5PAs0Oenve9AJNSBFKtaGClqAaJmrJ+JOCojVkcV3qr0qKer5Ise6qDqw1bQnNvyIR7bA9TFhrNFmymG49NVOXC1/cT8YMfxG38PVhNiFuWjd0yCE8tNUHwE/B5vBhloPXkpdC0mi3Hu1tIuCZNYL3M9S6npgAWzEZf45C/qN; 25:mNg/zQpawImyO3ihuh+aQe3fAuYhjeRZUluZzCRatzmwtcfBysgTDmoqKy4tUw5MITdurCFHi4TgdEk/MT/996yYQNjzXkOg6yv0P+XYYVV544/W0/T6ENfnEa/FcVOIqz7QjdHNqxkilijQDeJujbB+pS5gKt0PbrxPZGxYYTma89NvoL97zPIWsmrTLg0E2B5TiYvKkjrQF3jIGbDVyml/vglQg8e4uswarTHy78FGN+Zqg2ZliQHH2h+mavB1N5WTuhPMFBxSBccXKetg/kBCKXb3y/ISCu3Qd8te6L5qJ7N/QCELH6N7R4ahrz/d3d6IxfDBQ2fSvV/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caqg9A+aqI2+aioEWCIJV8Msk0OBn+1FDwHbXI4JA4/EqSyl6n+PUZflRR7rNRXOU74zlLXCvZjtu X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(3231220)(944501161)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR06MB3083; BCL:0; PCL:0; RULEID:; SRVR:DM5PR06MB3083; X-Forefront-PRVS: 05954A7C45 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(39380400002)(39860400002)(396003)(346002)(376002)(366004)(199004)(189003)(6666003)(110136005)(316002)(31686004)(26005)(77096007)(5660300001)(3846002)(58126008)(16576012)(50466002)(66066001)(65806001)(72206003)(65956001)(105586002)(65826007)(386003)(47776003)(1857600001)(478600001)(6486002)(31696002)(230700001)(2486003)(23676004)(52146003)(68736007)(97736004)(186003)(52116002)(36756003)(59450400001)(106356001)(81166006)(81156014)(25786009)(8936002)(2906002)(16526019)(53936002)(64126003)(8676002)(305945005)(6116002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR06MB3083; H:[10.0.0.5]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: netapp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjA2TUIzMDgzOzIzOkg4SkU0dHdyMWU2OFU3NGlFMXUrMGsyb1pP?= =?utf-8?B?czdjQmtyOEJhTjdkTFpCdU14aG1yRWROZXVKWkt1USsyOVBQbFlvSlFIWjVY?= =?utf-8?B?OVdlM05IVUw3RjFSMzIyRGI3RVZjUXRDSTZVRXdhYWp2MExGUm50cVk3ditI?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M391KQ3lq8E22zJLK/Ct2ri5fDzSyD5K7gZGJ0duVZzN0SckLH4DCplzCM2DCSbKgUd2CpOZozCqXouFMxnUgkTj3zxk0dbi7LLo=; 5:JnxL1xcvvg2BAztHN4wu7gr5s7ohyEuAyyRmuU6H9eMuDsInP5o4nSeBhg2RbWAhUsvtDxdlR0FH74p1j3YPTb/0TiDIfLobnihY2mSVhztMlpy18HDd5Q/5j+rhz2dM5vNaaU2qCQV12isyqE35H6CEZUGsMiY5er3Ztnxgae8=; 24:ku+vKCtUCi3yoJF/u4MwpWbeNB00uWZ4O9LZASGuUTAZql+zkjIynLqW777v4UkQVSq5PXNIdYfonupTD4t9QD6q7B+kLuP6MXqM/G0xWOM=; 7:wDMQsQqa369hQlC1F6HASAJdnkd5jr7A4EN+uuYb8jx8v2N8nhfVKfL+DkZ39him78/UJtPlpckKwfAvr79+/gKcyV/i7csfYfQMdTjxdcKu4bthJoDVZ7XjX6pZt/ClAfzX4ZN6GeEUI6rr6uIXNyA9jMBecFVroAM0gBmf7kNRVteDx2pf75hCV/p2uHcn9tfmpr4PaD7WqFOyG8XKRB5LFRswzfA6++uukTdJdzmZVFsGPuXXGiEvE4BjdKUE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2018 16:51:02.8703 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5a7a968e-72f4-4518-cb94-08d57d391fb9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR06MB3083 X-OriginatorOrg: netapp.com X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP In Patch: [7a862fb] brd: remove dax support Dan Williams has removed the only might_sleep implementation of ->direct_access. So we no longer need to check for it. CC: Dan Williams Signed-off-by: Boaz Harrosh --- drivers/dax/super.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 3ec8046..0a75550 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -236,12 +236,6 @@ long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages, { long avail; - /* - * The device driver is allowed to sleep, in order to make the - * memory directly accessible. - */ - might_sleep(); - if (!dax_dev) return -EOPNOTSUPP;