mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	nvme-pci: add known admin effects to augument admin effects log page
Add known admin effects even if hardware has known admin effects page, since hardware can't be ever trusted to report sane values. (on my Intel DC P3700, it reports no side effects for namespace format) Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
		
							parent
							
								
									e8fd41bb3c
								
							
						
					
					
						commit
						f4524cc456
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1257,10 +1257,9 @@ static u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
 | 
			
		|||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	effects |= nvme_known_admin_effects(opcode);
 | 
			
		||||
	if (ctrl->effects)
 | 
			
		||||
		effects = le32_to_cpu(ctrl->effects->acs[opcode]);
 | 
			
		||||
	else
 | 
			
		||||
		effects = nvme_known_admin_effects(opcode);
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * For simplicity, IO to all namespaces is quiesced even if the command
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue