diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-07-17 20:59:47 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-07-17 20:59:47 -0400 |
commit | 20fc190b0ef58bf8b3b0bff9de122083956f82ec (patch) | |
tree | 81512548e0f7b74b2f96b664e389fda5d9fad29a | |
parent | 3bfb1d20b547a5071d01344581eac5846ea84491 (diff) |
async_tx: list_for_each_entry_rcu() cleanup
In the rcu update side, don't use list_for_each_entry_rcu().
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | 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 c6e772fc5ccd..9325c61208a0 100644 --- a/crypto/async_tx/async_tx.c +++ b/crypto/async_tx/async_tx.c | |||
@@ -294,7 +294,7 @@ dma_channel_add_remove(struct dma_client *client, | |||
294 | case DMA_RESOURCE_REMOVED: | 294 | case DMA_RESOURCE_REMOVED: |
295 | found = 0; | 295 | found = 0; |
296 | spin_lock_irqsave(&async_tx_lock, flags); | 296 | spin_lock_irqsave(&async_tx_lock, flags); |
297 | list_for_each_entry_rcu(ref, &async_tx_master_list, node) | 297 | list_for_each_entry(ref, &async_tx_master_list, node) |
298 | if (ref->chan == chan) { | 298 | if (ref->chan == chan) { |
299 | /* permit backing devices to go away */ | 299 | /* permit backing devices to go away */ |
300 | dma_chan_put(ref->chan); | 300 | dma_chan_put(ref->chan); |