From: Julia Lawall Subject: question about arch/s390/kvm/interrupt.c Date: Fri, 10 Jul 2009 13:47:21 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: avi@redhat.com, kvm@vger.kernel.org Return-path: Received: from mgw1.diku.dk ([130.225.96.91]:53804 "EHLO mgw1.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874AbZGJLr3 (ORCPT ); Fri, 10 Jul 2009 07:47:29 -0400 Sender: kvm-owner@vger.kernel.org List-ID: In a recent version of linux-next, the function kvm_s390_handle_wait contains the following code: add_wait_queue(&vcpu->arch.local_int.wq, &wait); while (list_empty(&vcpu->arch.local_int.list) && list_empty(&vcpu->arch.local_int.float_int->list) && (!vcpu->arch.local_int.timer_due) && !signal_pending(current)) { set_current_state(TASK_INTERRUPTIBLE); spin_unlock_bh(&vcpu->arch.local_int.lock); spin_unlock(&vcpu->arch.local_int.float_int->lock); vcpu_put(vcpu); schedule(); vcpu_load(vcpu); spin_lock(&vcpu->arch.local_int.float_int->lock); spin_lock_bh(&vcpu->arch.local_int.lock); } __unset_cpu_idle(vcpu); __set_current_state(TASK_RUNNING); remove_wait_queue(&vcpu->wq, &wait); It seems a bit odd that the first argument to add_wait queue is &vcpu->arch.local_int.wq but the first argument to remove_wait_queue is &vcpu->wq. I don't see any obvious evidence that they are the same thing, but perhaps I am missing something. Should either call be changed? julia