Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1152383ybg; Thu, 4 Jun 2020 02:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ3V9ewtcKsVmws7Jee1baP3iWPlVBACeEt0P6rpXyEo4dRdTenJ27jzHAGJPBOdXJpve9 X-Received: by 2002:a17:906:4944:: with SMTP id f4mr3041681ejt.3.1591262450483; Thu, 04 Jun 2020 02:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591262450; cv=none; d=google.com; s=arc-20160816; b=inojE70nzQ9CceVazGGIxfxVEcFgfSVE7zgW8ouZM1bGcKrbY+84RMIXa97lwM57MY HGrzfn0QtHzaCez7XmX+/4Pio8iN0rQumqnYaGv+23QzpFwHaxayC/EH2+Yd7E0CFVz7 qGFr91ZAZZbaAUjyi+DyZdwlEGEn4YK6qjmKOfH21GUHJ+wmsvZPbFTbWUaH0G6UZNX4 SbifN5GiCGM9jAD52lByLsjA611JTRciR2p9x33tGcndQk3A/bZ0BmxkSIlj1cnXT+Z2 GXiXjLpilcIhejMFNDLC6wa3jgvbALv4H7+kFi1zeE3eBzuF3g/GUCaPHdD6IfEQebU+ tGvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=552FTsyBPmP0dIys2XvU7DaT4X8pVqCWxWc8Zz4SjJ8=; b=WI5VaEqKC1WR3SoKhZhZ3RFS95+EgRk5sm9H2q3mA45D0WgQ39zzRiq0/ZdGS+EMAJ jwr+km7Zlf6/8Pf14GCBEabs8NPhI3Pdte3jc4oHCidBBpdscL1rLR/rBYQQOMG1W7hI U5nk5d0o4SJdPXH4sgUlCzbFrecf3xpXe6Dzd8TxIRdvX7igx28tZNLNrdXLqFEe2sCh IaLybyAtw62PqeNf5VGWqHfvJxLYgfwDFnH4Eq8gaYGGUGq7D10tK7uUsquxduMG4Vcr MvWa/wSAmE0P/4CrzbhfwhL1TxstmJnZNkeLVJ9qI7eXi15/cI9Wr9O8gzcko5lvPf9C DbkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="j/CCKyyi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si1216823edy.603.2020.06.04.02.20.27; Thu, 04 Jun 2020 02:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="j/CCKyyi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727950AbgFDIid (ORCPT + 99 others); Thu, 4 Jun 2020 04:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbgFDIid (ORCPT ); Thu, 4 Jun 2020 04:38:33 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35FBAC05BD1E for ; Thu, 4 Jun 2020 01:38:33 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id j202so1311447ybg.6 for ; Thu, 04 Jun 2020 01:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=552FTsyBPmP0dIys2XvU7DaT4X8pVqCWxWc8Zz4SjJ8=; b=j/CCKyyi12hJt4X4YJ5jPUjnYgUqmF75Nt4hRNt6YKnV/taKrFZImPQ5T8ws5DSVXR xCPRqMYM7HINlDNEpVvc28tTSzUW+2Y7YE1prSQ/hE56w0dtP3r9imiZXen55WykmhKd 8pCJBy/O90/8I5D6Ifw0fLvfwSZTfwSXdqOJEDr6p7BpXasbsv7g29Bg23XhD78DCXK2 CRKAdkluo80uS7NhDRhrRGZdF99zAYbaI1OflgYRIlshnUCI6qy4xMuIZn0zAQp9t1lw FpjMMYIHGMwKolJfnmgzASHcdjPBNrk60LyHTUrQJ+ROAdGJF53opWizVK8QKz1iDbmF JlzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=552FTsyBPmP0dIys2XvU7DaT4X8pVqCWxWc8Zz4SjJ8=; b=tZ2esO3cUTjrlxF8pvRkw/d4IGXIplgb59KTqFFLqMADKYzUJqEcwqeocHxLG50e+M 1JbpxOOQr+z7vy2ra6LbSK1r0phuc2VAqJ+SwfYvuGZhNyzs9k02bTJpp+oaMQ3bb1uD ytboiTCR2EvTqYd3wsxFOlKcsd8Bs4rax6SuFz/0BrR9DQOUWoPupiEd53Qmmpy9ZrKn v075a/tLOa2WQMCIM2hHeGsh+rPcA8i0Ln2sNyPt4iTvxfMZH5ZPwTBS7+nO+m4maQaQ gF9S2x75VmQ0R8Gd7XTPZRGzp7CgsvnxdgqC1kneS3ErpxLTUpgbtoyiMobAIF9TsM8C vIvw== X-Gm-Message-State: AOAM532rYMp415OW58g6ojnLwZX+KmXFXFTwHh0Fqc0fGXiERoM1ckoj c3mE5E36KDoxUbnVLS4RH9UZ0hZ6Q8SZ082Afn4JjQ== X-Received: by 2002:a25:ef07:: with SMTP id g7mr6125577ybd.516.1591259912263; Thu, 04 Jun 2020 01:38:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Michel Lespinasse Date: Thu, 4 Jun 2020 01:38:18 -0700 Message-ID: Subject: Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock To: youling 257 Cc: "Liam R . Howlett" , Andrew Morton , Daniel Jordan , Davidlohr Bueso , Hugh Dickins , Jason Gunthorpe , Jerome Glisse , John Hubbard , Laurent Dufour , LKML , linux-mm , Peter Zijlstra , David Rientjes , Vlastimil Babka , Matthew Wilcox , Ying Han Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 4, 2020 at 1:16 AM youling 257 wrote: > 2020-06-04 13:57 GMT+08:00, Michel Lespinasse : > > However I would like more information about your report. Did you apply > > the series yourself ? If so, what base tree did you apply it onto ? If > > not, what tree did you use that already included the series ? > > I build linux next-20200603 tree have the kernel/sys.c error. Thanks for the info. The proper fix is to replace down_write(&mm->mmap_sem) with mmap_write_lock(mm) and up_write(&mm->mmap_sem) with mmap_write_unlock(mm) If you just needed a quick fix to get the tree to build, what you did (replacing mmap_sem with mmap_lock) is also fine. Thanks again ! -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies.