From patchwork Wed Aug 17 00:00:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9285005 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 6F2E8607FD for ; Wed, 17 Aug 2016 00:16:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F5AF286DB for ; Wed, 17 Aug 2016 00:16:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53E9D288A1; Wed, 17 Aug 2016 00:16:26 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DC6F286DB for ; Wed, 17 Aug 2016 00:16:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752325AbcHQAQY (ORCPT ); Tue, 16 Aug 2016 20:16:24 -0400 Received: from mail-dm3nam03on0083.outbound.protection.outlook.com ([104.47.41.83]:12227 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752152AbcHQAQW (ORCPT ); Tue, 16 Aug 2016 20:16:22 -0400 X-Greylist: delayed 928 seconds by postgrey-1.27 at vger.kernel.org; Tue, 16 Aug 2016 20:16:21 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fILiPKq5Se0RB96UqGcoo25y3wcYJPlBJiWs8ukUoLY=; b=M1W1znmxhGnlbM86NE+zEs47sgNzDpW8LBUNOSPJ/kFpF7l1mCm6CJp1J1JiQsfmrcFrNFmZQ4G8mYR11htTUE5KjrTVppU8UF8KFS5BhWABARBaG9c2j7Oopge4yQuvyz9MjSw4sq5LGZSdA70qmEvZbZfVQoU3qMtXmaqVhjw= Received: from BLUPR02CA042.namprd02.prod.outlook.com (10.160.23.160) by BY1PR02MB1100.namprd02.prod.outlook.com (10.162.108.139) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Wed, 17 Aug 2016 00:00:48 +0000 Received: from BY2FFO11FD002.protection.gbl (2a01:111:f400:7c0c::108) by BLUPR02CA042.outlook.office365.com (2a01:111:e400:8ad::32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21 via Frontend Transport; Wed, 17 Aug 2016 00:00:48 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11FD002.mail.protection.outlook.com (10.1.14.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.577.8 via Frontend Transport; Wed, 17 Aug 2016 00:00:48 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id E9.B1.26959.C37A3B75; Tue, 16 Aug 2016 16:52:28 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.301.0; Tue, 16 Aug 2016 17:00:46 -0700 X-AuditID: 0ac94369-ef8199800001694f-43-57b3a73cf9c5 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id CE.75.02783.B29A3B75; Tue, 16 Aug 2016 17:00:46 -0700 (PDT) To: Andrew Morton CC: Mel Gorman , Jan Kara , Hugh Dickins , Oleg Nesterov , "linux-mm@kvack.org" , Linux-fsdevel From: Bart Van Assche Subject: [PATCH] do_generic_file_read(): Fail immediately if killed Message-ID: <63068e8e-8bee-b208-8441-a3c39a9d9eb6@sandisk.com> Date: Tue, 16 Aug 2016 17:00:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsXCddJ5ka7N8s3hBsfnaFrMWb+GzeLppz4W i9nTm5ks9uw9yWJxb81/VovJ754xWmzd38rowO6xYFOpx6ZPk9g9Tsz4zeLxft9VNo8zC46w e2w+Xe3xeZNcAHsUl01Kak5mWWqRvl0CV8bEbSoFN9krbp3aztLAOJOti5GTQ0LAROLrp14g m4tDSGApk8SlNWuhnB2MEr3/77DCVF099ZcFxAaqYpR4/E0VxBYR0JVY9XwXM0gDs8BNRonl x24wgyTYBIwkvr2fCdYgLOAsseTKCjCbV8BOYlrzP7DVLAKqEp+3XgaLiwqESUy7+5YdokZQ 4uTMJ0BxDqChmhLrd+mDhJkF5CW2v50DtktCYBurxKP/D5kgDlKXOLlkPtMERsFZSNpnIbTP QtK+gJF5FaNYbmZOcW56aoGhqV5xYl5KZnG2XnJ+7iZGSDxk7mC8+8T7EKMAB6MSD2+DxeZw IdbEsuLK3EOMEhzMSiK8tcBoEuJNSaysSi3Kjy8qzUktPsQozcGiJM7rdu9LmJBAemJJanZq akFqEUyWiYNTqoFx3Wue3ceef7OKKZ17cNYKt9/7c15Mfi+gpnZBKLntXjLnthTtRrfOzz4q 8hw6eqkeYZXtSStWf3Ob3s/0TfF9/X5uxshrly5ZyU4UnKM5JU9ZKLdG+LRF71/TZPbs82ET ZTe1ZVXu7VznkPvyV9tjMe4MTZ+Zf+/KKV2aq7ZLapph0UvzHTuUWIozEg21mIuKEwG8P9Xr gwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsXCtZEjRVdv5eZwg6fLjS3mrF/DZvH0Ux+L xezpzUwWe/aeZLG4t+Y/q8Xkd88YLbbub2V0YPdYsKnUY9OnSeweJ2b8ZvF4v+8qm8eZBUfY PTafrvb4vEkugD2KyyYlNSezLLVI3y6BK2PiNpWCm+wVt05tZ2lgnMnWxcjJISFgInH11F+W LkYuDiGBxYwS2y5/ZAdJiAjoSqx6vosZJMEscJtR4kNLE1gHm4CRxLf3M1lAbGEBZ4klV1aA 2bwCdhLTmv+B1bAIqEp83noZLC4qECYx7e5bdogaQYmTM5+AxZkF1CX+zLvEDGHLS2x/O4d5 AiPPLCRls5CUzUJStoCReRWjWG5mTnFuemaBoaFecWJeSmZxtl5yfu4mRnBYckbuYHw60fwQ IxMHp1QDo+Ee1iLpqHvufnpvVG7Y2Sp97pGc+3T3/x+3bqmVneo13Ht6bmKKzmXWH117q++F WLR838Gnfn/J/xAXR3W1975GRbN29Ea8lCh2V9iiUTCtb7/ttUui3K8aTOdy83iqWP1V6tw7 gffesZ/cmo2Xr9q5StwQzGsVe3nmWv3Fv2kGNtIlIjzsSizFGYmGWsxFxYkAkLl/3vsBAAA= X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(36756003)(68736007)(2906002)(64126003)(230700001)(4326007)(50986999)(11100500001)(19580405001)(2270400002)(54356999)(92566002)(81166006)(626004)(31696002)(8936002)(50466002)(81156014)(305945005)(356003)(8676002)(7846002)(7696003)(586003)(110136002)(31686004)(4001350100001)(189998001)(47776003)(97736004)(229853001)(33646002)(83506001)(77096005)(19580395003)(87936001)(65956001)(106466001)(86362001)(23676002)(69596002)(65806001)(53416004)(14773001)(65826006)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR02MB1100; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD002; 1:yx3snWCak2QvgNY8X3ZS5yLd3T2vXB3Im2wy7hMaghQipNIsZ6w9xbcyLU9Q2IUAnDesg0uof/BalyyMr6SpN4FrHbqXbdhVV5hcDNp66ZEsH4a1SxmKoS+IAUBa3joePkSi8ecEtyAdxKPOTZ/b0OLuewNHHOu56o2+ovGIkgVF+CX/7bkCciGk8w9kt15cPUEEJBx2pO+YfoIkJnOjgnE8DnH52rutOzYsezUq3oc4QquesegvFwzNzBtL1zALHrB46iDE/ujUFRFI4DoaiOuomhQj3NBN75PHx8Qkqo3GDoAN1uHIL6Z+31SqEtTZ1FwHzW29hFakE8wS2LbpxDc6pO6iL73Nwh4WkedOS9onHTstPMNMzbk1yaMsNc6IPJKDGkVQxC9cjBAbw22h9PrNOuISmsvZnkjaOypNTqUvWSMWL/riUTzFh4VTBFX0x9pJfb7aL+AobLmLhTq048DSOBBr4k8uwWR852KsxTKyoFV0DpjdjxOHTTTKRfuynYBFtiKLS7jGqfF17586dA== X-MS-Office365-Filtering-Correlation-Id: 6565b40f-82c1-4481-49f1-08d3c6318b91 X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1100; 2:3/7v/U+eEtOzyvY4O/m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cTcP6irgsbagHnUIA2IpslHYQMCR8E3qbsz5TzHXF2Hb/yKXyudPrFq7J3M9STVvQ/7OjEyP+cHMVvMQIv+9iYN34lLEsj/KAVtWx0R5I15Gj1NG0+g8R/1sicwtVldnBZRsxzWjyRnHTIBiIOi84I+p6o=; 20:kg7arXQa73KFladcBu7/0S+UoME1JL+JNfdwbmmKq8hwPTSU9yxnJA7wzCMfLX3tSLno77F+d/dKPegfoFb+6a5kUnGgKUZWIPtIn16SL6pBh7Mg3cZx+ua6Lfm8NrcYSM5EqVaTd1oSl6lZinOxkNUSf9NvH2HdwlQCsJso/adTOaYWdyLQ+rlsbziafGsMPXqwWqLH143nXc/pGFTz788pIAEHdnZt7T9jv7597N83miISMDDVbhSVo4281QakqzI/JG2+gni6HWPI+uJXvNSpyZbCCSwmPrrrIE0zNP5wXbrVcsdMQO4rELOnxyaUVvxVwMeCwl7wgcReFlAdUlqtv0RSI4pf1jn2tgfOkaalIjIhcWKtnnvv7bN1t1D8W0x3RW64jiCFv9VTKpCkKvpuEhv5ODJKrU58gcHlb1OtyMQqqg3vwzx/9AxWx68K1XBmkTSkq4bu96RXVQxj+V1CCfW6/SuKilBSqlB4c8FbUCn8Ije42nU/LArThzGj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211936372134217)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(3002001)(10201501046)(6055026); SRVR:BY1PR02MB1100; BCL:0; PCL:0; RULEID:; SRVR:BY1PR02MB1100; X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1100; 4:AIg63AS+YbGXGMRVP5H1tL5gYuRywt1ARBal1uTZuNNAbN71c1g7qFNwJb9EnRotdzh8Z4HiHc/PyOu7/YyrE3CHZETumUZZPzY0plYOCbLlRKCCi8QArkg7NVJ6MY/zmru7oGwIf93dVSJN0v5oomeEl1UWOdltRdDcXlbM2qqJr+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wIhy5HfkrN3hDYnZfVmnJWNU8DRP6IsFCGtLc/4D88IpFj5+EK90rVsJhOsIroHukTGJYUi09odL6gYiGOd7K+E8IVbn4gG3IAsxmc2t6m8UFUGS4YZUvdWv7e8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1100; 20:Zt/tWF2oakPLhey1gv7XjxdjCccsoA4C3h1TBLuXXfyd/tfldEk9WWawudcwfWdx0H7aAPErazCNVUH98UeKFD1XzjhPMLvbWaonh4kA/fuDI2G3MTPaOg7mBphW5s1WG9r/9fA1fvg4jQeUySovzl+w5KDt6cmp5yDKpB568J42WmzNw3Rxzl/Nyy5VIda16ziu9OyCVGBzuQk1cMf+fMkztY8AQxdmTmlKeHLGo9fOYOK4VCe5RxJV3VVA62xJ X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2016 00:00:48.5999 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR02MB1100 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If a fatal signal has been received, fail immediately instead of trying to read more data. See also commit ebded02788b5 ("mm: filemap: avoid unnecessary calls to lock_page when waiting for IO to complete during a read") Signed-off-by: Bart Van Assche Cc: Mel Gorman Cc: Jan Kara Cc: Hugh Dickins Cc: Oleg Nesterov Reviewed-by: Jan Kara Acked-by: Oleg Nesterov Acked-by: Michal Hocko --- mm/filemap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 2a9e84f6..bd8ab63 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1721,7 +1721,9 @@ find_page: * wait_on_page_locked is used to avoid unnecessarily * serialisations and why it's safe. */ - wait_on_page_locked_killable(page); + error = wait_on_page_locked_killable(page); + if (unlikely(error)) + goto readpage_error; if (PageUptodate(page)) goto page_ok;