mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	locktorture: fix deadlock in 'rw_lock_irq' type
torture_rwlock_read_unlock_irq() must use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
		
							parent
							
								
									7d0ae8086b
								
							
						
					
					
						commit
						f548d99ef4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -309,7 +309,7 @@ static int torture_rwlock_read_lock_irq(void) __acquires(torture_rwlock)
 | 
				
			||||||
static void torture_rwlock_read_unlock_irq(void)
 | 
					static void torture_rwlock_read_unlock_irq(void)
 | 
				
			||||||
__releases(torture_rwlock)
 | 
					__releases(torture_rwlock)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	write_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags);
 | 
						read_unlock_irqrestore(&torture_rwlock, cxt.cur_ops->flags);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct lock_torture_ops rw_lock_irq_ops = {
 | 
					static struct lock_torture_ops rw_lock_irq_ops = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue