search for: out_oom_notify

Displaying 20 results from an estimated 41 matches for "out_oom_notify".

2015 Mar 04
2
[PATCH] virtio_balloon: set DRIVER_OK before using device
...ertions(+) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 5a6ad6d..6a356e3 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -508,6 +508,8 @@ static int virtballoon_probe(struct virtio_device *vdev) if (err < 0) goto out_oom_notify; + virtio_device_ready(vdev); + vb->thread = kthread_run(balloon, vb, "vballoon"); if (IS_ERR(vb->thread)) { err = PTR_ERR(vb->thread); -- MST
2015 Mar 04
2
[PATCH] virtio_balloon: set DRIVER_OK before using device
...ertions(+) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 5a6ad6d..6a356e3 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -508,6 +508,8 @@ static int virtballoon_probe(struct virtio_device *vdev) if (err < 0) goto out_oom_notify; + virtio_device_ready(vdev); + vb->thread = kthread_run(balloon, vb, "vballoon"); if (IS_ERR(vb->thread)) { err = PTR_ERR(vb->thread); -- MST
2014 Oct 15
0
[PATCH 2/2] virtio_balloon: free some memory from balloon on OOM
...lloon; @@ -446,6 +488,12 @@ static int virtballoon_probe(struct virtio_device *vdev) if (err) goto out_free_vb; + vb->nb.notifier_call = virtballoon_oom_notify; + vb->nb.priority = VIRTBALLOON_OOM_NOTIFY_PRIORITY; + err = register_oom_notifier(&vb->nb); + if (err < 0) + goto out_oom_notify; + vb->thread = kthread_run(balloon, vb, "vballoon"); if (IS_ERR(vb->thread)) { err = PTR_ERR(vb->thread); @@ -455,6 +503,8 @@ static int virtballoon_probe(struct virtio_device *vdev) return 0; out_del_vqs: + unregister_oom_notifier(&vb->nb); +out_oom_notify:...
2014 Oct 15
0
[PATCH 2/2] virtio_balloon: free some memory from balloon on OOM
...lloon; @@ -446,6 +488,12 @@ static int virtballoon_probe(struct virtio_device *vdev) if (err) goto out_free_vb; + vb->nb.notifier_call = virtballoon_oom_notify; + vb->nb.priority = VIRTBALLOON_OOM_NOTIFY_PRIORITY; + err = register_oom_notifier(&vb->nb); + if (err < 0) + goto out_oom_notify; + vb->thread = kthread_run(balloon, vb, "vballoon"); if (IS_ERR(vb->thread)) { err = PTR_ERR(vb->thread); @@ -455,6 +503,8 @@ static int virtballoon_probe(struct virtio_device *vdev) return 0; out_del_vqs: + unregister_oom_notifier(&vb->nb); +out_oom_notify:...
2016 Mar 21
1
[PATCH v2 14/18] mm/balloon: use general movable page feature into balloon
...each undeclared identifier is reported only once for each function it appears in >> drivers/virtio/virtio_balloon.c:579:1: warning: label 'out_free_vb' defined but not used [-Wunused-label] out_free_vb: ^ vim +/balloon_mnt +578 drivers/virtio/virtio_balloon.c 572 573 out_oom_notify: 574 vdev->config->del_vqs(vdev); 575 out_unmount: 576 if (vb->vb_dev_info.inode) 577 iput(vb->vb_dev_info.inode); > 578 kern_unmount(balloon_mnt); > 579 out_free_vb: 580 kfree(vb); 581 out: 582 return err; --- 0-DAY kernel test infrastructure...
2016 Mar 21
1
[PATCH v2 14/18] mm/balloon: use general movable page feature into balloon
...each undeclared identifier is reported only once for each function it appears in >> drivers/virtio/virtio_balloon.c:579:1: warning: label 'out_free_vb' defined but not used [-Wunused-label] out_free_vb: ^ vim +/balloon_mnt +578 drivers/virtio/virtio_balloon.c 572 573 out_oom_notify: 574 vdev->config->del_vqs(vdev); 575 out_unmount: 576 if (vb->vb_dev_info.inode) 577 iput(vb->vb_dev_info.inode); > 578 kern_unmount(balloon_mnt); > 579 out_free_vb: 580 kfree(vb); 581 out: 582 return err; --- 0-DAY kernel test infrastructure...
2014 Oct 15
2
[PATCH v2 0/2] shrink virtio baloon on OOM in guest
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast changing memory load. As a result OS runs out of memory and invokes OOM-killer. The balancing of
2014 Oct 15
2
[PATCH v2 0/2] shrink virtio baloon on OOM in guest
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast changing memory load. As a result OS runs out of memory and invokes OOM-killer. The balancing of
2014 Oct 08
2
[PATCH 2/2] virtio_balloon: free some memory from baloon on OOM
...@ -474,6 +511,12 @@ static int virtballoon_probe(struct virtio_device *vdev) if (err) goto out_free_vb_mapping; + vb->nb.notifier_call = virtballoon_oom_notify; + vb->nb.priority = VIRTBALLOON_OOM_NOTIFY_PRIORITY; + err = register_oom_notifier(&vb->nb); + if (err < 0) + goto out_oom_notify; + vb->thread = kthread_run(balloon, vb, "vballoon"); if (IS_ERR(vb->thread)) { err = PTR_ERR(vb->thread); @@ -483,6 +526,8 @@ static int virtballoon_probe(struct virtio_device *vdev) return 0; out_del_vqs: + unregister_oom_notifier(&vb->nb); +out_oom_notify:...
2014 Oct 08
2
[PATCH 2/2] virtio_balloon: free some memory from baloon on OOM
...@ -474,6 +511,12 @@ static int virtballoon_probe(struct virtio_device *vdev) if (err) goto out_free_vb_mapping; + vb->nb.notifier_call = virtballoon_oom_notify; + vb->nb.priority = VIRTBALLOON_OOM_NOTIFY_PRIORITY; + err = register_oom_notifier(&vb->nb); + if (err < 0) + goto out_oom_notify; + vb->thread = kthread_run(balloon, vb, "vballoon"); if (IS_ERR(vb->thread)) { err = PTR_ERR(vb->thread); @@ -483,6 +526,8 @@ static int virtballoon_probe(struct virtio_device *vdev) return 0; out_del_vqs: + unregister_oom_notifier(&vb->nb); +out_oom_notify:...
2014 Oct 08
3
[PATCH 0/2] shrink virtio baloon on OOM in guest
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast changing memory load. As a result OS runs out of memory and invokes OOM-killer. The balancing of
2014 Oct 08
3
[PATCH 0/2] shrink virtio baloon on OOM in guest
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast changing memory load. As a result OS runs out of memory and invokes OOM-killer. The balancing of
2015 Mar 05
0
[PATCH] virtio_balloon: set DRIVER_OK before using device
...rs/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > index 5a6ad6d..6a356e3 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -508,6 +508,8 @@ static int virtballoon_probe(struct virtio_device *vdev) > if (err < 0) > goto out_oom_notify; > > + virtio_device_ready(vdev); > + > vb->thread = kthread_run(balloon, vb, "vballoon"); > if (IS_ERR(vb->thread)) { > err = PTR_ERR(vb->thread); > -- > MST
2015 Mar 05
1
[PATCH] virtio_balloon: set DRIVER_OK before using device
...rivers/virtio/virtio_balloon.c > > index 5a6ad6d..6a356e3 100644 > > --- a/drivers/virtio/virtio_balloon.c > > +++ b/drivers/virtio/virtio_balloon.c > > @@ -508,6 +508,8 @@ static int virtballoon_probe(struct virtio_device *vdev) > > if (err < 0) > > goto out_oom_notify; > > > > + virtio_device_ready(vdev); > > + > > vb->thread = kthread_run(balloon, vb, "vballoon"); > > if (IS_ERR(vb->thread)) { > > err = PTR_ERR(vb->thread); > > -- > > MST
2015 Mar 05
0
[PATCH] virtio_balloon: set DRIVER_OK before using device
...rs/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > index 5a6ad6d..6a356e3 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -508,6 +508,8 @@ static int virtballoon_probe(struct virtio_device *vdev) > if (err < 0) > goto out_oom_notify; > > + virtio_device_ready(vdev); > + > vb->thread = kthread_run(balloon, vb, "vballoon"); > if (IS_ERR(vb->thread)) { > err = PTR_ERR(vb->thread); > -- > MST
2015 Mar 05
1
[PATCH] virtio_balloon: set DRIVER_OK before using device
...rivers/virtio/virtio_balloon.c > > index 5a6ad6d..6a356e3 100644 > > --- a/drivers/virtio/virtio_balloon.c > > +++ b/drivers/virtio/virtio_balloon.c > > @@ -508,6 +508,8 @@ static int virtballoon_probe(struct virtio_device *vdev) > > if (err < 0) > > goto out_oom_notify; > > > > + virtio_device_ready(vdev); > > + > > vb->thread = kthread_run(balloon, vb, "vballoon"); > > if (IS_ERR(vb->thread)) { > > err = PTR_ERR(vb->thread); > > -- > > MST
2016 May 09
0
[PATCH v5 03/12] mm: balloon: use general non-lru movable page feature
..._dev_info.migratepage = virtballoon_migratepage; -#endif err = init_vqs(vb); if (err) @@ -527,13 +547,33 @@ static int virtballoon_probe(struct virtio_device *vdev) vb->nb.priority = VIRTBALLOON_OOM_NOTIFY_PRIORITY; err = register_oom_notifier(&vb->nb); if (err < 0) - goto out_oom_notify; + goto out_del_vqs; + +#ifdef CONFIG_BALLOON_COMPACTION + balloon_mnt = kern_mount(&balloon_fs); + if (IS_ERR(balloon_mnt)) { + err = PTR_ERR(balloon_mnt); + unregister_oom_notifier(&vb->nb); + goto out_del_vqs; + } + + vb->vb_dev_info.migratepage = virtballoon_migratepage; + vb-...
2016 May 20
0
[PATCH v6 03/12] mm: balloon: use general non-lru movable page feature
..._dev_info.migratepage = virtballoon_migratepage; -#endif err = init_vqs(vb); if (err) @@ -531,13 +551,33 @@ static int virtballoon_probe(struct virtio_device *vdev) vb->nb.priority = VIRTBALLOON_OOM_NOTIFY_PRIORITY; err = register_oom_notifier(&vb->nb); if (err < 0) - goto out_oom_notify; + goto out_del_vqs; + +#ifdef CONFIG_BALLOON_COMPACTION + balloon_mnt = kern_mount(&balloon_fs); + if (IS_ERR(balloon_mnt)) { + err = PTR_ERR(balloon_mnt); + unregister_oom_notifier(&vb->nb); + goto out_del_vqs; + } + + vb->vb_dev_info.migratepage = virtballoon_migratepage; + vb-...
2014 Oct 15
4
[PATCH v3 0/2] shrink virtio baloon on OOM in guest
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast changing memory load. As a result OS runs out of memory and invokes OOM-killer. The balancing of
2014 Oct 15
4
[PATCH v3 0/2] shrink virtio baloon on OOM in guest
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast changing memory load. As a result OS runs out of memory and invokes OOM-killer. The balancing of