]> err.no Git - linux-2.6/commitdiff
async_tx: list_for_each_entry_rcu() cleanup
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 18 Jul 2008 00:59:47 +0000 (17:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 18 Jul 2008 00:59:47 +0000 (17:59 -0700)
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>
crypto/async_tx/async_tx.c

index c6e772fc5ccd93cd5caa9b3f63df5142b8002924..9325c61208a0854a1155bc1c31a63038951406c0 100644 (file)
@@ -294,7 +294,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);