Re: [PATCH 1/2] dma-debug: Fix locking bug in check_unmap

2013-03-19 Thread Shuah Khan
On Mon, 2013-03-18 at 15:12 -0700, Alexander Duyck wrote: > In check_unmap it is possible to get into a dead-locked state if > dma_mapping_error is called. The problem is that the bucket is locked in > check_unmap, and locked again by debug_dma_mapping_error which is called by >

Re: [PATCH 1/2] dma-debug: Fix locking bug in check_unmap

2013-03-19 Thread Shuah Khan
On Mon, 2013-03-18 at 15:12 -0700, Alexander Duyck wrote: In check_unmap it is possible to get into a dead-locked state if dma_mapping_error is called. The problem is that the bucket is locked in check_unmap, and locked again by debug_dma_mapping_error which is called by dma_mapping_error.

[PATCH 1/2] dma-debug: Fix locking bug in check_unmap

2013-03-18 Thread Alexander Duyck
In check_unmap it is possible to get into a dead-locked state if dma_mapping_error is called. The problem is that the bucket is locked in check_unmap, and locked again by debug_dma_mapping_error which is called by dma_mapping_error. To resolve that we must release the lock on the bucket before

[PATCH 1/2] dma-debug: Fix locking bug in check_unmap

2013-03-18 Thread Alexander Duyck
In check_unmap it is possible to get into a dead-locked state if dma_mapping_error is called. The problem is that the bucket is locked in check_unmap, and locked again by debug_dma_mapping_error which is called by dma_mapping_error. To resolve that we must release the lock on the bucket before