public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] async_tx: list_for_each_entry_rcu() cleanup
@ 2008-07-17  2:00 Li Zefan
  2008-07-18  1:21 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Li Zefan @ 2008-07-17  2:00 UTC (permalink / raw)
  To: Dan Williams; +Cc: Paul E. McKenney, LKML

In the rcu update side, don't use list_for_each_entry_rcu().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
 crypto/async_tx/async_tx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
index 095c798..17834e5 100644
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -295,7 +295,7 @@ dma_channel_add_remove(struct dma_client *client,
 	case DMA_RESOURCE_REMOVED:
 		found = 0;
 		spin_lock_irqsave(&async_tx_lock, flags);
-		list_for_each_entry_rcu(ref, &async_tx_master_list, node)
+		list_for_each_entry(ref, &async_tx_master_list, node)
 			if (ref->chan == chan) {
 				/* permit backing devices to go away */
 				dma_chan_put(ref->chan);
-- 
1.5.4.rc3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] async_tx: list_for_each_entry_rcu() cleanup
  2008-07-17  2:00 [PATCH] async_tx: list_for_each_entry_rcu() cleanup Li Zefan
@ 2008-07-18  1:21 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2008-07-18  1:21 UTC (permalink / raw)
  To: Li Zefan; +Cc: Paul E. McKenney, LKML

On Wed, Jul 16, 2008 at 7:00 PM, Li Zefan <lizf@cn.fujitsu.com> wrote:
> In the rcu update side, don't use list_for_each_entry_rcu().
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---

Thanks, applied.

--
Dan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-18  1:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-17  2:00 [PATCH] async_tx: list_for_each_entry_rcu() cleanup Li Zefan
2008-07-18  1:21 ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox