Message ID | 20200423145215.72666-1-minchan@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=ftPA=6H=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B8FB281 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 23 Apr 2020 14:52:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 866CE214AF for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 23 Apr 2020 14:52:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HPaNiTYk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 866CE214AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B6A8C8E0005; Thu, 23 Apr 2020 10:52:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B1B198E0003; Thu, 23 Apr 2020 10:52:21 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A0AC98E0005; Thu, 23 Apr 2020 10:52:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0251.hostedemail.com [216.40.44.251]) by kanga.kvack.org (Postfix) with ESMTP id 8986B8E0003 for <linux-mm@kvack.org>; Thu, 23 Apr 2020 10:52:21 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3AC7D180AD837 for <linux-mm@kvack.org>; Thu, 23 Apr 2020 14:52:21 +0000 (UTC) X-FDA: 76739410482.20.egg16_4eb8590961912 X-Spam-Summary: 2,0,0,257a2354c22fdefe,d41d8cd98f00b204,minchan.kim@gmail.com,,RULES_HIT:41:355:379:541:800:960:967:973:988:989:1260:1311:1314:1345:1431:1437:1515:1534:1540:1711:1714:1730:1747:1777:1792:2376:2393:2525:2559:2563:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3350:3867:3868:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6261:6653:7903:8985:9025:10004:11026:11658:11914:12043:12296:12297:12517:12519:12555:12895:12986:13069:13311:13357:13894:14096:14181:14384:14394:14721:21080:21444:21451:21627:21740:21749:21796:21990,0,RBL:209.85.210.193:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: egg16_4eb8590961912 X-Filterd-Recvd-Size: 3773 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by imf30.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Thu, 23 Apr 2020 14:52:20 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id 18so3055446pfx.6 for <linux-mm@kvack.org>; Thu, 23 Apr 2020 07:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4rI2HBYxNBKoe5w9dDE24wDNXQvmFDFdZIYosoJvhPA=; b=HPaNiTYkIL4ygp2SToG5/9ziAN0Lkwlu2A46UkB9bWzyBN354z2tvx92JTwktVJaKm RVD2DcYWZJp12hZhwe+7Nc2kKmP4SvV8tCEwC+f15oT9nrvc1DEBwkjQU6Jr/+CXyRuv uwDXMbj8GiMqoUSCCe56FJQPKsFRI565s45sixg1VdgideFzCZpxA0nNLG+E1C8kYKgT 9t12ln3GNtAQOJAFBo2MfDyG97K6M6bcW4D+UL30yWRVOMXLrTay5gxe4dKWSGffPjFq BBWaUPxbmzTzXS2u8yHYtrF7orTLLSlWZmvsMdKoa78aoUqQGpUeO1eydEqFcuZ7CWRw MnEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=4rI2HBYxNBKoe5w9dDE24wDNXQvmFDFdZIYosoJvhPA=; b=ZS15ffy4cg8tQzZndFxe7IisntlwgAF3aOYhjAJdpy5XJEDOos8GQXPKh4BuOLEUhM wC+VdSKYu1/FLriDJTPTkwA3pnRPP2FKHGFJpAq4RjwHmOjSZjhToPARJdNqkWW0hEHK orYfp1YbP6b9f7Lnm2UP2NOVBMR9uD92VN7yQhQOi0f8mIw+u1FO7Yu/bkClaB+2FGD7 BDXAljmyuJsR69UT3BzC3yAWPSXA0M0y4us2H+f7Sw0IiOjkX6onmKPZBVCNEc3lV6HY 9TNPVCqZVBqb/0doSpU+PHYRvN39tj/rGBA0Xx1fgYgyzLlSjdRktW78fPq5h2+prmGx DrDg== X-Gm-Message-State: AGi0PuZ7Ulf4EQHdKrcfZFjFc3gBeVIn7wRodnYmgXR1L99naLkE5M/v 8ola03wBYiP2KZalE40p9m4= X-Google-Smtp-Source: APiQypI6K++1YQW79eTe2JgvfHl8ewLEVtek1h/BtjPUYyJGk0PczA5NmeVba9Fz+ZA+yvybVYM8Dw== X-Received: by 2002:a63:3002:: with SMTP id w2mr4298813pgw.290.1587653539638; Thu, 23 Apr 2020 07:52:19 -0700 (PDT) Received: from bbox-1.mtv.corp.google.com ([2620:15c:211:1:3e01:2939:5992:52da]) by smtp.gmail.com with ESMTPSA id c2sm2824100pfp.118.2020.04.23.07.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 07:52:18 -0700 (PDT) From: Minchan Kim <minchan@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm <linux-mm@kvack.org>, Minchan Kim <minchan@kernel.org>, Jens Axboe <axboe@kernel.dk>, Jann Horn <jannh@google.com> Subject: [PATCH 1/2] fs: use current->mm for io_uring Date: Thu, 23 Apr 2020 07:52:14 -0700 Message-Id: <20200423145215.72666-1-minchan@kernel.org> X-Mailer: git-send-email 2.26.1.301.g55bc3eb7cb9-goog MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[1/2] fs: use current->mm for io_uring
|
expand
|
diff --git a/fs/io_uring.c b/fs/io_uring.c index 54b7c4818289..94af6cd05fb5 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3267,7 +3267,7 @@ static int io_madvise(struct io_kiocb *req, bool force_nonblock) if (force_nonblock) return -EAGAIN; - ret = do_madvise(NULL, req->work.mm, ma->addr, ma->len, ma->advice); + ret = do_madvise(NULL, current->mm, ma->addr, ma->len, ma->advice); if (ret < 0) req_set_fail_links(req); io_cqring_add_event(req, ret);
per-request by Jens, https://lore.kernel.org/io-uring/46e5b8bf-0f14-caff-f706-91794191e730@kernel.dk/ Andrew, please fold this into "mm/madvise: pass task and mm to do_madvise" Cc: Jens Axboe <axboe@kernel.dk> Cc: Jann Horn <jannh@google.com> Signed-off-by: Minchan Kim <minchan@kernel.org> --- fs/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)