search for: plist_lock

Displaying 2 results from an estimated 2 matches for "plist_lock".

2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...rtio_device *vdev; + struct virtqueue *vq; + struct task_struct *balloon_thread; + wait_queue_head_t balloon_wait; + wait_queue_head_t rmmod_wait; + uint32_t target_nrpages; + atomic_t inflight_bufs; + int balloon_size; + struct list_head balloon_plist; + struct list_head balloon_work; + spinlock_t plist_lock; + spinlock_t queue_lock; + struct list_head list; +}; + +struct balloon_buf *alloc_balloon_buf(struct virtio_device *vdev, gfp_t flags) +{ + struct balloon_buf *buf; + + buf = kzalloc(sizeof(struct balloon_buf), flags); + if (!buf) + dev_printk(KERN_ERR, &vdev->dev, "%s: alloc fail\n&...
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...rtio_device *vdev; + struct virtqueue *vq; + struct task_struct *balloon_thread; + wait_queue_head_t balloon_wait; + wait_queue_head_t rmmod_wait; + uint32_t target_nrpages; + atomic_t inflight_bufs; + int balloon_size; + struct list_head balloon_plist; + struct list_head balloon_work; + spinlock_t plist_lock; + spinlock_t queue_lock; + struct list_head list; +}; + +struct balloon_buf *alloc_balloon_buf(struct virtio_device *vdev, gfp_t flags) +{ + struct balloon_buf *buf; + + buf = kzalloc(sizeof(struct balloon_buf), flags); + if (!buf) + dev_printk(KERN_ERR, &vdev->dev, "%s: alloc fail\n&...