Revision a0cff57bb2a41cb9cbf13d3203097b4156d8c0ae authored by Davidlohr Bueso on 13 September 2017, 20:08:21 UTC, committed by Paolo Bonzini on 15 September 2017, 14:57:12 UTC
During code inspection, the following potential race was seen:

CPU0   	    		    	     	CPU1
kvm_async_pf_task_wait			apf_task_wake_one
					  [L] swait_active(&n->wq)
  [S] prepare_to_swait(&n.wq)
  [L] if (!hlist_unhahed(&n.link))
	schedule()			  [S] hlist_del_init(&n->link);

Properly serialize swait_active() checks such that a wakeup is
not missed.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent cc1b468
History
File Mode Size
Makefile -rw-r--r-- 287 bytes
ps3-lpm.c -rw-r--r-- 31.2 KB
ps3-sys-manager.c -rw-r--r-- 20.5 KB
ps3-vuart.c -rw-r--r-- 30.5 KB
ps3av.c -rw-r--r-- 27.7 KB
ps3av_cmd.c -rw-r--r-- 23.8 KB
ps3stor_lib.c -rw-r--r-- 9.6 KB
sys-manager-core.c -rw-r--r-- 2.0 KB
vuart.h -rw-r--r-- 3.5 KB

back to top