Browse Source

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>
Li Zefan 17 years ago
parent
commit
20fc190b0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      crypto/async_tx/async_tx.c

+ 1 - 1
crypto/async_tx/async_tx.c

@@ -294,7 +294,7 @@ dma_channel_add_remove(struct dma_client *client,
 	case DMA_RESOURCE_REMOVED:
 	case DMA_RESOURCE_REMOVED:
 		found = 0;
 		found = 0;
 		spin_lock_irqsave(&async_tx_lock, flags);
 		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) {
 			if (ref->chan == chan) {
 				/* permit backing devices to go away */
 				/* permit backing devices to go away */
 				dma_chan_put(ref->chan);
 				dma_chan_put(ref->chan);