Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2163731ybm; Sun, 31 May 2020 10:39:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZs41ZhGZcSsYo3Fmjd+3L5sEEYed6KyNq5WIksPMawjspLH2O8xZ8TC23tck7Dm1I88rB X-Received: by 2002:a17:906:d961:: with SMTP id rp1mr8068577ejb.118.1590946761342; Sun, 31 May 2020 10:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590946761; cv=none; d=google.com; s=arc-20160816; b=ecLcEXGMmOL3SU+dn/rGWMzWS7ejjJCm6vHJLXusTjFAwESV5qzGz1LiiwCAwvc6aF u42Csop21W3g8jo1FRGg5wNF6+9lxgAa3r09FbNjS1h0kleDOEAAUvL01/bW0w7xKh63 oY1yll0S7fpSFZE7JHxctC+o+Dn/TsxsBi/HvBE0a/DBrLHVPU+q7bkgGLe/1prrbQvs ciM28OTe/Bw3VuA/IICLQJ104iDjdaC1SEcCgrnakU9WZC3DKu3IboNOzpSYpBKM8dgY W3NGCceXc3JmaC2pN8P4dU5JS5cIJzpciksN+CorOy0fA9tBuwh+WaRshd4cDoG6zc72 GDXg== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=xcBy8aRGRXzG4T39ncOuFP4uk+NwGxUpNglHu4cGfwo=; b=eOfDqJTXaVWJaSsJAk5g9DhAAdPgOe2cMZTiL5N/sFEHMxXUxYdd5IaBbypEuoxa3M HooBz9/9a8NDdDYfRU8WPK31Pqucg5AAn6PUXvbHqrHumhtPVQuGFj83SBUNHcXZJQBg cdkcAdLx4D7oCxrKyK5xhtbJUIHRLHm55cZxBmMPaU0d4WF00tkIkq7bXHXmtblBW59j Yldy6CGASx8MUI3if2nzfeAvCLMMm+CMLOebtaenv3qBo2W8OqpxNxwhN1EKPOH4W6qZ 4Aeh26Clc4ZukP3FMVaqFgPhxDHJTTMtUjHvMeM6u2RXiRy+SQfq+a7HbPpzRDaArIom VVVQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si1884182edw.77.2020.05.31.10.38.56; Sun, 31 May 2020 10:39:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728289AbgEaRhF (ORCPT + 99 others); Sun, 31 May 2020 13:37:05 -0400 Received: from smtprelay0065.hostedemail.com ([216.40.44.65]:35164 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728175AbgEaRhE (ORCPT ); Sun, 31 May 2020 13:37:04 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 7F546837F253; Sun, 31 May 2020 17:37:03 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:2828:2904:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3872:3873:3874:4321:5007:6119:6742:10004:10400:10848:11026:11232:11657:11658:11914:12043:12296:12297:12438:12740:12760:12895:13019:13069:13311:13357:13439:14659:14721:21080:21627:21990:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: cup30_260de1426d76 X-Filterd-Recvd-Size: 2605 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Sun, 31 May 2020 17:37:01 +0000 (UTC) Message-ID: <24e0f572511724ea338f8802fde2ad3a359ea8d5.camel@perches.com> Subject: Re: [PATCH] staging:r8723bs: remove wrappers around skb_clone() From: Joe Perches To: Ivan Safonov , Greg Kroah-Hartman Cc: Rasmus Villemoes , Hans de Goede , Miguel Ojeda , Nishka Dasgupta , Lukasz Szczesny , R Veera Kumar , Hariprasad Kelam , YueHaibing , Shobhit Kukreti , Dan Carpenter , Pascal Terjan , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Sun, 31 May 2020 10:36:59 -0700 In-Reply-To: <8e4df253-e021-6c29-96ab-24eed9b61eb2@gmail.com> References: <20200531160843.39120-1-insafonov@gmail.com> <7bf8612d3708b811e026daec5c7a1486c5954905.camel@perches.com> <8e4df253-e021-6c29-96ab-24eed9b61eb2@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-05-31 at 20:28 +0300, Ivan Safonov wrote: > On 5/31/20 7:15 PM, Joe Perches wrote: > > On Sun, 2020-05-31 at 19:08 +0300, Ivan Safonov wrote: > > > Wrappers around skb_clone() do not simplify the driver code. > > [] > > > -inline struct sk_buff *_rtw_skb_clone(struct sk_buff *skb) > > > -{ > > > - return skb_clone(skb, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); > > > -} > > > - > > [] > > > diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c > > [] > > > @@ -110,7 +110,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt > > > if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)) { > > > if (bmcast) { > > > psta = rtw_get_bcmc_stainfo(padapter); > > > - pskb2 = rtw_skb_clone(pkt); > > > + pskb2 = skb_clone(pkt, GFP_ATOMIC); > > > > Why make every clone allocation GFP_ATOMIC ? > > The rtw_os_recv_indicate_pkt() is always called from an interrupt handler. It'd be better to indicate you know that in the changelog as the subject and changelog just shows removing wrappers and the patch code does not agree with that.