mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	- Configure check for mutex_lock_nested(). This function was introduced as part of the mutex validator in 2.6.18, but if it's unavailable then it's safe to fallback to a plain mutex_lock().
		
			
				
	
	
		
			13 lines
		
	
	
		
			292 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			292 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _SPL_MUTEX_COMPAT_H
 | 
						|
#define _SPL_MUTEX_COMPAT_H
 | 
						|
 | 
						|
#include <linux/mutex.h>
 | 
						|
 | 
						|
/* mutex_lock_nested() introduced in 2.6.18 */
 | 
						|
#ifndef HAVE_MUTEX_LOCK_NESTED
 | 
						|
# define mutex_lock_nested(lock, subclass)	mutex_lock(lock)
 | 
						|
#endif /* HAVE_MUTEX_LOCK_NESTED */
 | 
						|
 | 
						|
#endif /* _SPL_MUTEX_COMPAT_H */
 | 
						|
 |