comment non-check of cp->killed
This commit is contained in:
		
							parent
							
								
									8970df0c1b
								
							
						
					
					
						commit
						2868ca0f37
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								ide.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								ide.c
									
										
									
									
									
								
							| 
						 | 
					@ -144,6 +144,7 @@ ide_rw(struct buf *b)
 | 
				
			||||||
    ide_start_request(b);
 | 
					    ide_start_request(b);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  // Wait for request to finish.
 | 
					  // Wait for request to finish.
 | 
				
			||||||
 | 
					  // Assuming will not sleep too long: ignore cp->killed.
 | 
				
			||||||
  while((b->flags & (B_VALID|B_DIRTY)) != B_VALID)
 | 
					  while((b->flags & (B_VALID|B_DIRTY)) != B_VALID)
 | 
				
			||||||
    sleep(b, &ide_lock);
 | 
					    sleep(b, &ide_lock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue