mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	linux 6.3 compat: needs REQ_PREFLUSH | REQ_OP_WRITE
Modify bio_set_flush() so if kernel version is >= 4.10, flags REQ_PREFLUSH and REQ_OP_WRITE are set together. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Youzhong Yang <yyang@mathworks.com> Closes #14695
This commit is contained in:
		
							parent
							
								
									3d9f37026d
								
							
						
					
					
						commit
						e202d3b867
					
				@ -415,7 +415,7 @@ static inline void
 | 
			
		||||
bio_set_flush(struct bio *bio)
 | 
			
		||||
{
 | 
			
		||||
#if defined(HAVE_REQ_PREFLUSH)	/* >= 4.10 */
 | 
			
		||||
	bio_set_op_attrs(bio, 0, REQ_PREFLUSH);
 | 
			
		||||
	bio_set_op_attrs(bio, 0, REQ_PREFLUSH | REQ_OP_WRITE);
 | 
			
		||||
#elif defined(WRITE_FLUSH_FUA)	/* >= 2.6.37 and <= 4.9 */
 | 
			
		||||
	bio_set_op_attrs(bio, 0, WRITE_FLUSH_FUA);
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user