lkml.org 
[lkml]   [2010]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 1/3] kvm: keep track of which task is running a KVM vcpu
    On 12/03/2010 07:17 AM, Srivatsa Vaddagiri wrote:
    > 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?

    That should not be needed, since current cannot go away without
    setting vcpu->task back to NULL in vcpu_put.

    --
    All rights reversed


    \
     
     \ /
      Last update: 2010-12-03 15:19    [W:0.019 / U:30.600 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site