From patchwork Wed Jan 18 15:26:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13106615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73A37C32793 for ; Wed, 18 Jan 2023 15:55:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbjARPzD (ORCPT ); Wed, 18 Jan 2023 10:55:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbjARPyM (ORCPT ); Wed, 18 Jan 2023 10:54:12 -0500 X-Greylist: delayed 887 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 07:51:05 PST Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9665E5411B; Wed, 18 Jan 2023 07:51:04 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1674055579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7IKaIZufY5EGrmY+2gZX2D6okxDALZBycWye212MQWU=; b=KQ2JYehjt8IsHlBydNzu9XsmK6tK6Nv0G7DIYqxD3LikJK1w8OsI4ofRZVpBfF5Ou2H8iP I+nkFfGnZvOvk+MDkiGzNrGIMADZY52GfJ227Q1v2/lGahIOiN4I28zMGHS+4noJVeen8S chewX+VzQRWgyQzAvdYxwg9fcHO8KQ4= From: Kent Overstreet To: linux-kernel@vger.kernel.org Cc: Kent Overstreet , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 1/2] fs/aio: Use kmap_local() instead of kmap() Date: Wed, 18 Jan 2023 10:26:02 -0500 Message-Id: <20230118152603.28301-1-kent.overstreet@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Originally, we used kmap() instead of kmap_atomic() for reading events out of the completion ringbuffer because we're using copy_to_user(), which can fault. Now that kmap_local() is a thing, use that instead. Signed-off-by: Kent Overstreet Cc: Benjamin LaHaise