* Re: [PATCH tip/core/rcu 01/12] rcu: Remove rcu_swap_protected() [not found] ` <20191211231239.GK2889@paulmck-ThinkPad-P72> @ 2019-12-12 9:31 ` Kalle Valo [not found] ` <87mubxdh52.fsf@kamboji.qca.qualcomm.com> 1 sibling, 0 replies; 2+ messages in thread From: Kalle Valo @ 2019-12-12 9:31 UTC (permalink / raw) To: Paul E. McKenney Cc: Matthias Brugger, Martin K. Petersen, rcu, linux-kernel, kernel-team, mingo, jiangshanlai, dipankar, akpm, mathieu.desnoyers, josh, tglx, peterz, rostedt, dhowells, edumazet, fweisbec, oleg, joel, Bart Van Assche, Christoph Hellwig, Hannes Reinecke, Johannes Thumshirn, Shane M Seymour, Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo, David S. Miller, linux-wireless + linux-wireless "Paul E. McKenney" <paulmck@kernel.org> writes: > On Wed, Dec 11, 2019 at 08:09:11PM +0100, Matthias Brugger wrote: >> On 11/12/2019 19:37, Paul E. McKenney wrote: >> >> > --- a/drivers/net/wireless/mediatek/mt76/agg-rx.c >> > +++ b/drivers/net/wireless/mediatek/mt76/agg-rx.c >> > @@ -281,8 +281,8 @@ void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno) >> > { >> > struct mt76_rx_tid *tid = NULL; >> > >> > - rcu_swap_protected(wcid->aggr[tidno], tid, >> > - lockdep_is_held(&dev->mutex)); >> > + tid = rcu_swap_protected(wcid->aggr[tidno], tid, >> > + lockdep_is_held(&dev->mutex)); >> >> I suppose you meant: rcu_replace_pointer() here. > > Indeed I did, and thank you for catching this! Bad patch day here. :-/ > > Update below... > > Thanx, Paul > > ------------------------------------------------------------------------ > > commit ad5572b091429a45e863acaa6a36cf396d44f58d > Author: Paul E. McKenney <paulmck@kernel.org> > Date: Wed Dec 11 10:30:21 2019 -0800 > > wireless/mediatek: Replace rcu_swap_protected() with rcu_replace_pointer() > > This commit replaces the use of rcu_swap_protected() with the more > intuitively appealing rcu_replace_pointer() as a step towards removing > rcu_swap_protected(). > > Link: https://lore.kernel.org/lkml/CAHk-=wiAsJLw1egFEE=Z7-GGtM6wcvtyytXZA1+BHqta4gg6Hw@mail.gmail.com/ > Reported-by: Linus Torvalds <torvalds@linux-foundation.org> > Reported-by: "Martin K. Petersen" <martin.petersen@oracle.com> > [ paulmck: Apply Matthias Brugger feedback. ] > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> > Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com> > Cc: Felix Fietkau <nbd@nbd.name> > Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> > Cc: Ryder Lee <ryder.lee@mediatek.com> > Cc: Roy Luo <royluo@google.com> > Cc: Kalle Valo <kvalo@codeaurora.org> > Cc: "David S. Miller" <davem@davemloft.net> > Cc: Matthias Brugger <matthias.bgg@gmail.com> > Cc: <linux-wireless@vger.kernel.org> > Cc: <netdev@vger.kernel.org> > Cc: <linux-arm-kernel@lists.infradead.org> > Cc: <linux-mediatek@lists.infradead.org> Via which tree is this supposed to go? If I should take this please resend to linux-wireless so that patchwork sees it, but if someone else is planning to take this: Acked-by: Kalle Valo <kvalo@codeaurora.org> -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <87mubxdh52.fsf@kamboji.qca.qualcomm.com>]
* Re: [PATCH tip/core/rcu 01/12] rcu: Remove rcu_swap_protected() [not found] ` <87mubxdh52.fsf@kamboji.qca.qualcomm.com> @ 2019-12-12 18:21 ` Paul E. McKenney 0 siblings, 0 replies; 2+ messages in thread From: Paul E. McKenney @ 2019-12-12 18:21 UTC (permalink / raw) To: Kalle Valo Cc: Matthias Brugger, Martin K. Petersen, rcu, linux-kernel, kernel-team, mingo, jiangshanlai, dipankar, akpm, mathieu.desnoyers, josh, tglx, peterz, rostedt, dhowells, edumazet, fweisbec, oleg, joel, Bart Van Assche, Christoph Hellwig, Hannes Reinecke, Johannes Thumshirn, Shane M Seymour, Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo, David S. Miller, linux-wireless On Thu, Dec 12, 2019 at 11:31:37AM +0200, Kalle Valo wrote: > + linux-wireless > > "Paul E. McKenney" <paulmck@kernel.org> writes: > > > On Wed, Dec 11, 2019 at 08:09:11PM +0100, Matthias Brugger wrote: > >> On 11/12/2019 19:37, Paul E. McKenney wrote: > >> > >> > --- a/drivers/net/wireless/mediatek/mt76/agg-rx.c > >> > +++ b/drivers/net/wireless/mediatek/mt76/agg-rx.c > >> > @@ -281,8 +281,8 @@ void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno) > >> > { > >> > struct mt76_rx_tid *tid = NULL; > >> > > >> > - rcu_swap_protected(wcid->aggr[tidno], tid, > >> > - lockdep_is_held(&dev->mutex)); > >> > + tid = rcu_swap_protected(wcid->aggr[tidno], tid, > >> > + lockdep_is_held(&dev->mutex)); > >> > >> I suppose you meant: rcu_replace_pointer() here. > > > > Indeed I did, and thank you for catching this! Bad patch day here. :-/ > > > > Update below... > > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > commit ad5572b091429a45e863acaa6a36cf396d44f58d > > Author: Paul E. McKenney <paulmck@kernel.org> > > Date: Wed Dec 11 10:30:21 2019 -0800 > > > > wireless/mediatek: Replace rcu_swap_protected() with rcu_replace_pointer() > > > > This commit replaces the use of rcu_swap_protected() with the more > > intuitively appealing rcu_replace_pointer() as a step towards removing > > rcu_swap_protected(). > > > > Link: https://lore.kernel.org/lkml/CAHk-=wiAsJLw1egFEE=Z7-GGtM6wcvtyytXZA1+BHqta4gg6Hw@mail.gmail.com/ > > Reported-by: Linus Torvalds <torvalds@linux-foundation.org> > > Reported-by: "Martin K. Petersen" <martin.petersen@oracle.com> > > [ paulmck: Apply Matthias Brugger feedback. ] > > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> > > Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com> > > Cc: Felix Fietkau <nbd@nbd.name> > > Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> > > Cc: Ryder Lee <ryder.lee@mediatek.com> > > Cc: Roy Luo <royluo@google.com> > > Cc: Kalle Valo <kvalo@codeaurora.org> > > Cc: "David S. Miller" <davem@davemloft.net> > > Cc: Matthias Brugger <matthias.bgg@gmail.com> > > Cc: <linux-wireless@vger.kernel.org> > > Cc: <netdev@vger.kernel.org> > > Cc: <linux-arm-kernel@lists.infradead.org> > > Cc: <linux-mediatek@lists.infradead.org> > > Via which tree is this supposed to go? If I should take this please > resend to linux-wireless so that patchwork sees it, but if someone else > is planning to take this: > > Acked-by: Kalle Valo <kvalo@codeaurora.org> I have queued it just preceding the commit that remove rcu_swap_protected() with your ack, thank you! Thanx, Paul ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-12 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20191210040714.GA2715@paulmck-ThinkPad-P72>
[not found] ` <20191210040741.2943-1-paulmck@kernel.org>
[not found] ` <yq1a77zmt4a.fsf@oracle.com>
[not found] ` <20191211035122.GC2889@paulmck-ThinkPad-P72>
[not found] ` <20191211183738.GA5190@paulmck-ThinkPad-P72>
[not found] ` <1911b7fa-c8d4-e34b-020d-3346a56f29d6@gmail.com>
[not found] ` <20191211231239.GK2889@paulmck-ThinkPad-P72>
2019-12-12 9:31 ` [PATCH tip/core/rcu 01/12] rcu: Remove rcu_swap_protected() Kalle Valo
[not found] ` <87mubxdh52.fsf@kamboji.qca.qualcomm.com>
2019-12-12 18:21 ` Paul E. McKenney
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox