 Stefan Hajnoczi
		
	
	
		d0c8d2c05f
		
	
	
	
	aio: extract aio_dispatch() from aio_poll()
			Stefan Hajnoczi
		
	
	
		d0c8d2c05f
		
	
	
	
	aio: extract aio_dispatch() from aio_poll()
		
			
			We will need to loop over AioHandlers calling ->io_read()/->io_write() when aio_poll() is converted from select(2) to g_poll(2). Luckily the code for this already exists, extract it into the new aio_dispatch() function. Two small changes: * aio_poll() checks !node->deleted to avoid calling handlers that have been deleted. * Fix typo 'then' -> 'them' in aio_poll() comment. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-id: 1361356113-11049-9-git-send-email-stefanha@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
				
					… 
				
			
			
		
				
					… 
				
			
			
		
				
					… 
				
			
			
		
				
					… 
				
			
			
		Read the documentation in qemu-doc.html or on http://wiki.qemu.org - QEMU team
Description
				
					Languages
				
				
								
								
									C
								
								90.3%
							
						
							
								
								
									Dylan
								
								2.5%
							
						
							
								
								
									Python
								
								2.1%
							
						
							
								
								
									C++
								
								2%
							
						
							
								
								
									Shell
								
								1.7%
							
						
							
								
								
									Other
								
								1.4%