IB/mlx5: Make sure doorbell record is visible before doorbell
Put a wmb() to make sure the doorbell record is visible to the HCA before we hit doorbell. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
		
							parent
							
								
									042b9adae8
								
							
						
					
					
						commit
						ada388f7af
					
				| @ -2251,6 +2251,10 @@ out: | ||||
| 
 | ||||
| 		qp->db.db[MLX5_SND_DBR] = cpu_to_be32(qp->sq.cur_post); | ||||
| 
 | ||||
| 		/* Make sure doorbell record is visible to the HCA before
 | ||||
| 		 * we hit doorbell */ | ||||
| 		wmb(); | ||||
| 
 | ||||
| 		if (bf->need_lock) | ||||
| 			spin_lock(&bf->lock); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user