[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101203121746.GE27994@linux.vnet.ibm.com>
Date: Fri, 3 Dec 2010 17:47:46 +0530
From: Srivatsa Vaddagiri <vatsa@...ux.vnet.ibm.com>
To: Rik van Riel <riel@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Avi Kiviti <avi@...hat.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>,
Anthony Liguori <aliguori@...ux.vnet.ibm.com>
Subject: Re: [RFC PATCH 1/3] kvm: keep track of which task is running a KVM
vcpu
On Thu, Dec 02, 2010 at 02:43:24PM -0500, Rik van Riel wrote:
> mutex_lock(&vcpu->mutex);
> + vcpu->task = current;
Shouldn't we grab reference to current task_struct before storing a pointer to
it?
- vatsa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists