- async_tx-fix-the-bug-in-async_tx_run_dependencies.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     async_tx: fix a bug in async_tx_run_dependencies
has been removed from the -mm tree.  Its filename was
     async_tx-fix-the-bug-in-async_tx_run_dependencies.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: async_tx: fix a bug in async_tx_run_dependencies
From: Yuri Tikhonov <yur@xxxxxxxxxxx>

Should clear the next pointer of the TX if we are sure that the next TX
(say NXT) will be submitted to the channel too.  Overwise, we break the
chain of descriptors, because we lose the information about the next
descriptor to run.  So next time, when invoke async_tx_run_dependencies()
with TX, it's TX->next will be NULL, and NXT will be never submitted.

Signed-off-by: Yuri Tikhonov <yur@xxxxxxxxxxx>
Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
Cc: Li Zefan <lizf@xxxxxxxxxxxxxx>
Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 crypto/async_tx/async_tx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN crypto/async_tx/async_tx.c~async_tx-fix-the-bug-in-async_tx_run_dependencies crypto/async_tx/async_tx.c
--- a/crypto/async_tx/async_tx.c~async_tx-fix-the-bug-in-async_tx_run_dependencies
+++ a/crypto/async_tx/async_tx.c
@@ -137,7 +137,8 @@ async_tx_run_dependencies(struct dma_asy
 		spin_lock_bh(&next->lock);
 		next->parent = NULL;
 		_next = next->next;
-		next->next = NULL;
+		if (_next && _next->chan == chan)
+			next->next = NULL;
 		spin_unlock_bh(&next->lock);
 
 		next->tx_submit(next);
_

Patches currently in -mm which might be from yur@xxxxxxxxxxx are

origin.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux