Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2719335ybk; Mon, 18 May 2020 06:25:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkT8meE+Hn3Enj5x5kBX1kD1dY24v42MNNTlxI3a3ffbAkWzx2Gi94XwL8KlGewxKSoPv0 X-Received: by 2002:a17:906:ece4:: with SMTP id qt4mr15306215ejb.162.1589808345652; Mon, 18 May 2020 06:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589808345; cv=none; d=google.com; s=arc-20160816; b=HVxPmNKNNBoTRjzMo8C/wIpq+sRYR0gegkM0uCdHudMIb3lK61sIYOSPZmG3c9Lc17 UMhm148FiwGyGNjV1vM7ru0GZ5YRh5YDxvbAtf8PcPUNYgLCNmERcZJ3kwk3MacYIGbx FyILjye0XnwIj6H5oqhdf6Ks/wwjOtol8XtYmYjeyCVYsWVFhfskk2/o3fOOKMqVhalA JykPZxsE3SxVv5bRaGHzt8lwsW/PJJ1daSyOeY7Ze+3b+qID0Jt1kJbBQZiq3ysPpVbD ToGRol8S+rKFl5mIH9KZRJJ+8dQtEHAaTJFILdoZaSMLp6myHe9jyJC81orEOAyOSnlr 92WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7L+fJlLLEeQ1buXemNbh4fJc11cr/pMyxq3Os+i9+w4=; b=Sb5uLrPAzbXnUrBif0/nt2wEzDnq9PwCo6U5/CGllxl259X4falTafMJJT5xnJouU0 GAvIWJjWUR9yCxeh9en0QnYd5bn4ExbcSveasb6AeuFUe0TBRhKt1ePeYGag5p/Tt1Ei cEOW9zIw7jDjPTjH3oTd+oYrx4UOE3jD5uQSOLi3z0OhKiN0Ppju3Svyp4dHx0EZWJZ4 Qfuph4Fz+t1GloeZ2zuxEpzE3lmHNKHyDvvR1cv+7Xf6bKLyNkVCIcQIJ85QjmvvN1yW GfbdQNAsvvPvD3qdvSJZT/X7jtSDPQwudxnEFzByyX8MIqbub+XlSJBeXTGBNIb5qYJa mQQA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si6835773edi.409.2020.05.18.06.25.22; Mon, 18 May 2020 06:25:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727884AbgERNVc (ORCPT + 99 others); Mon, 18 May 2020 09:21:32 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:30868 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbgERNVb (ORCPT ); Mon, 18 May 2020 09:21:31 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04ID4iQv155963; Mon, 18 May 2020 09:20:53 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 312cp7s457-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 May 2020 09:20:53 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 04IDCPGj001629; Mon, 18 May 2020 09:20:53 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 312cp7s44f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 May 2020 09:20:53 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 04IDFJWB030967; Mon, 18 May 2020 13:20:50 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma03ams.nl.ibm.com with ESMTP id 3127t5m6g7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 May 2020 13:20:50 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04IDKmUJ65143146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 May 2020 13:20:48 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6705842045; Mon, 18 May 2020 13:20:48 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7873C4203F; Mon, 18 May 2020 13:20:47 +0000 (GMT) Received: from pomme.local (unknown [9.145.67.24]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 18 May 2020 13:20:47 +0000 (GMT) Subject: Re: [PATCH v5 03/10] DMA reservations: use the new mmap locking API To: Michel Lespinasse , Andrew Morton , linux-mm Cc: LKML , Peter Zijlstra , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , Davidlohr Bueso , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Daniel Jordan References: <20200422001422.232330-1-walken@google.com> <20200422001422.232330-4-walken@google.com> From: Laurent Dufour Message-ID: <714ddb85-f2f7-af77-70ac-fff2bb1b80a1@linux.ibm.com> Date: Mon, 18 May 2020 15:20:47 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200422001422.232330-4-walken@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-18_05:2020-05-15,2020-05-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 cotscore=-2147483648 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005180114 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 22/04/2020 à 02:14, Michel Lespinasse a écrit : > This use is converted manually ahead of the next patch in the series, > as it requires including a new header which the automated conversion > would miss. > > Signed-off-by: Michel Lespinasse > Reviewed-by: Daniel Jordan Reviewed-by: Laurent Dufour > --- > drivers/dma-buf/dma-resv.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma-buf/dma-resv.c b/drivers/dma-buf/dma-resv.c > index 4264e64788c4..b45f8514dc82 100644 > --- a/drivers/dma-buf/dma-resv.c > +++ b/drivers/dma-buf/dma-resv.c > @@ -34,6 +34,7 @@ > > #include > #include > +#include > #include > > /** > @@ -109,7 +110,7 @@ static int __init dma_resv_lockdep(void) > > dma_resv_init(&obj); > > - down_read(&mm->mmap_sem); > + mmap_read_lock(mm); > ww_acquire_init(&ctx, &reservation_ww_class); > ret = dma_resv_lock(&obj, &ctx); > if (ret == -EDEADLK) > @@ -118,7 +119,7 @@ static int __init dma_resv_lockdep(void) > fs_reclaim_release(GFP_KERNEL); > ww_mutex_unlock(&obj.lock); > ww_acquire_fini(&ctx); > - up_read(&mm->mmap_sem); > + mmap_read_unlock(mm); > > mmput(mm); > >