Displaying 20 results from an estimated 67 matches for "try_to_freez".
Did you mean:
try_to_freeze
2015 Feb 25
2
[PATCH] virtio-balloon: do not call blocking ops when !TASK_RUNNING
...ointed to by
@@ -334,12 +335,25 @@ static int virtballoon_oom_notify(struct notifier_block *self,
static int balloon(void *_vballoon)
{
struct virtio_balloon *vb = _vballoon;
+ DEFINE_WAIT_FUNC(wait, woken_wake_function);
set_freezable();
while (!kthread_should_stop()) {
s64 diff;
try_to_freeze();
+
+ add_wait_queue(&vb->config_change, &wait);
+ for (;;) {
+ if ((diff = towards_target(vb)) != 0 ||
+ vb->need_stats_update ||
+ kthread_should_stop() ||
+ freezing(current))
+ break;
+ wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
+...
2015 Feb 25
2
[PATCH] virtio-balloon: do not call blocking ops when !TASK_RUNNING
...ointed to by
@@ -334,12 +335,25 @@ static int virtballoon_oom_notify(struct notifier_block *self,
static int balloon(void *_vballoon)
{
struct virtio_balloon *vb = _vballoon;
+ DEFINE_WAIT_FUNC(wait, woken_wake_function);
set_freezable();
while (!kthread_should_stop()) {
s64 diff;
try_to_freeze();
+
+ add_wait_queue(&vb->config_change, &wait);
+ for (;;) {
+ if ((diff = towards_target(vb)) != 0 ||
+ vb->need_stats_update ||
+ kthread_should_stop() ||
+ freezing(current))
+ break;
+ wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
+...
2015 Mar 04
2
virtio balloon: do not call blocking ops when !TASK_RUNNING
...--git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
> index 0413157f3b49..3f4d5acdbde0 100644
> --- a/drivers/virtio/virtio_balloon.c
> +++ b/drivers/virtio/virtio_balloon.c
> @@ -340,6 +340,15 @@ static int balloon(void *_vballoon)
> s64 diff;
>
> try_to_freeze();
> +
> + /*
> + * Reading the config on the ccw backend involves an
> + * allocation, so we may actually sleep and have an
> + * extra iteration. It's extremely unlikely,
Hmm, this part of the comment seems wrong to me.
Reading the config on the ccw backend always sle...
2015 Mar 04
2
virtio balloon: do not call blocking ops when !TASK_RUNNING
...--git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
> index 0413157f3b49..3f4d5acdbde0 100644
> --- a/drivers/virtio/virtio_balloon.c
> +++ b/drivers/virtio/virtio_balloon.c
> @@ -340,6 +340,15 @@ static int balloon(void *_vballoon)
> s64 diff;
>
> try_to_freeze();
> +
> + /*
> + * Reading the config on the ccw backend involves an
> + * allocation, so we may actually sleep and have an
> + * extra iteration. It's extremely unlikely,
Hmm, this part of the comment seems wrong to me.
Reading the config on the ccw backend always sle...
2015 Feb 26
1
virtio balloon: do not call blocking ops when !TASK_RUNNING
...ointed to by
@@ -334,17 +335,25 @@ static int virtballoon_oom_notify(struct notifier_block *self,
static int balloon(void *_vballoon)
{
struct virtio_balloon *vb = _vballoon;
+ DEFINE_WAIT_FUNC(wait, woken_wake_function);
set_freezable();
while (!kthread_should_stop()) {
s64 diff;
try_to_freeze();
- wait_event_interruptible(vb->config_change,
- (diff = towards_target(vb)) != 0
- || vb->need_stats_update
- || kthread_should_stop()
- || freezing(current));
+
+ add_wait_queue(&vb->config_change, &wait);
+ for (;;) {
+ if ((diff = towards_target(vb))...
2015 Feb 26
1
virtio balloon: do not call blocking ops when !TASK_RUNNING
...ointed to by
@@ -334,17 +335,25 @@ static int virtballoon_oom_notify(struct notifier_block *self,
static int balloon(void *_vballoon)
{
struct virtio_balloon *vb = _vballoon;
+ DEFINE_WAIT_FUNC(wait, woken_wake_function);
set_freezable();
while (!kthread_should_stop()) {
s64 diff;
try_to_freeze();
- wait_event_interruptible(vb->config_change,
- (diff = towards_target(vb)) != 0
- || vb->need_stats_update
- || kthread_should_stop()
- || freezing(current));
+
+ add_wait_queue(&vb->config_change, &wait);
+ for (;;) {
+ if ((diff = towards_target(vb))...
2013 Feb 25
4
WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
...6>] ? _raw_spin_lock+0x1b/0x1f
[<ffffffff814c2059>] ? _raw_spin_unlock+0x27/0x32
[<ffffffff811e47e8>] btrfs_commit_transaction+0x45a/0x954
[<ffffffff8105d4be>] ? add_wait_queue+0x44/0x44
[<ffffffff811de8a6>] transaction_kthread+0xe7/0x18a
[<ffffffff811de7bf>] ? try_to_freeze+0x33/0x33
[<ffffffff8105cc31>] kthread+0x88/0x90
[<ffffffff8105cba9>] ? kthread_freezable_should_stop+0x39/0x39
[<ffffffff814c6b3c>] ret_from_fork+0x7c/0xb0
[<ffffffff8105cba9>] ? kthread_freezable_should_stop+0x39/0x39
---[ end trace ee93ff454aca9d81 ]---
--
"A...
2013 Jul 08
2
btrfs crashes
...:02:25 hsad-srv-03 kernel: [870100.614336]
[<ffffffff8106144c>] ? should_resched+0x5/0x23
Jun 25 17:02:25 hsad-srv-03 kernel: [870100.614349]
[<ffffffffa01c1d95>] ? transaction_kthread+0xe0/0x183 [btrfs]
Jun 25 17:02:25 hsad-srv-03 kernel: [870100.614363]
[<ffffffffa01c1cb5>] ? try_to_freeze+0x31/0x31 [btrfs]
Jun 25 17:02:25 hsad-srv-03 kernel: [870100.614377]
[<ffffffffa01c1cb5>] ? try_to_freeze+0x31/0x31 [btrfs]
Jun 25 17:02:25 hsad-srv-03 kernel: [870100.614380]
[<ffffffff81057da4>] ? kthread+0x81/0x89
Jun 25 17:02:25 hsad-srv-03 kernel: [870100.614383]
[<ffffffff...
2015 Mar 02
4
virtio balloon: do not call blocking ops when !TASK_RUNNING
On Mon, Mar 02, 2015 at 10:37:26AM +1030, Rusty Russell wrote:
> Thomas Huth <thuth at linux.vnet.ibm.com> writes:
> > On Thu, 26 Feb 2015 11:50:42 +1030
> > Rusty Russell <rusty at rustcorp.com.au> wrote:
> >
> >> Thomas Huth <thuth at linux.vnet.ibm.com> writes:
> >> > Hi all,
> >> >
> >> > with the recent
2015 Mar 02
4
virtio balloon: do not call blocking ops when !TASK_RUNNING
On Mon, Mar 02, 2015 at 10:37:26AM +1030, Rusty Russell wrote:
> Thomas Huth <thuth at linux.vnet.ibm.com> writes:
> > On Thu, 26 Feb 2015 11:50:42 +1030
> > Rusty Russell <rusty at rustcorp.com.au> wrote:
> >
> >> Thomas Huth <thuth at linux.vnet.ibm.com> writes:
> >> > Hi all,
> >> >
> >> > with the recent
2009 Apr 17
1
virtio-balloon: check for freezer in kthread loop
...off-by: Marcelo Tosatti <mtosatti at redhat.com>
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 5926826..9c76a06 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -190,7 +190,8 @@ static int balloon(void *_vballoon)
try_to_freeze();
wait_event_interruptible(vb->config_change,
(diff = towards_target(vb)) != 0
- || kthread_should_stop());
+ || kthread_should_stop()
+ || freezing(current));
if (diff > 0)
fill_balloon(vb, diff);
else if (diff < 0)
2009 Apr 17
1
virtio-balloon: check for freezer in kthread loop
...off-by: Marcelo Tosatti <mtosatti at redhat.com>
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 5926826..9c76a06 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -190,7 +190,8 @@ static int balloon(void *_vballoon)
try_to_freeze();
wait_event_interruptible(vb->config_change,
(diff = towards_target(vb)) != 0
- || kthread_should_stop());
+ || kthread_should_stop()
+ || freezing(current));
if (diff > 0)
fill_balloon(vb, diff);
else if (diff < 0)
2015 Feb 25
0
[PATCH] virtio-balloon: do not call blocking ops when !TASK_RUNNING
...balloon_oom_notify(struct notifier_block *self,
> static int balloon(void *_vballoon)
> {
> struct virtio_balloon *vb = _vballoon;
> + DEFINE_WAIT_FUNC(wait, woken_wake_function);
>
> set_freezable();
> while (!kthread_should_stop()) {
> s64 diff;
>
> try_to_freeze();
> +
> + add_wait_queue(&vb->config_change, &wait);
> + for (;;) {
> + if ((diff = towards_target(vb)) != 0 ||
> + vb->need_stats_update ||
> + kthread_should_stop() ||
> + freezing(current))
> + break;
> + wait_woken(&wait,...
2015 Mar 04
0
virtio balloon: do not call blocking ops when !TASK_RUNNING
...rusty at rustcorp.com.au>
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 0413157f3b49..3f4d5acdbde0 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -340,6 +340,15 @@ static int balloon(void *_vballoon)
s64 diff;
try_to_freeze();
+
+ /*
+ * Reading the config on the ccw backend involves an
+ * allocation, so we may actually sleep and have an
+ * extra iteration. It's extremely unlikely, and this
+ * isn't a fast path in any sense.
+ */
+ sched_annotate_sleep();
+
wait_event_interruptible(vb->c...
2015 Feb 25
0
[PATCH] virtio-balloon: do not call blocking ops when !TASK_RUNNING
...balloon_oom_notify(struct notifier_block *self,
> static int balloon(void *_vballoon)
> {
> struct virtio_balloon *vb = _vballoon;
> + DEFINE_WAIT_FUNC(wait, woken_wake_function);
>
> set_freezable();
> while (!kthread_should_stop()) {
> s64 diff;
>
> try_to_freeze();
> +
> + add_wait_queue(&vb->config_change, &wait);
> + for (;;) {
> + if ((diff = towards_target(vb)) != 0 ||
> + vb->need_stats_update ||
> + kthread_should_stop() ||
> + freezing(current))
> + break;
> + wait_woken(&wait,...
2015 Mar 04
0
virtio balloon: do not call blocking ops when !TASK_RUNNING
...rusty at rustcorp.com.au>
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 0413157f3b49..3f4d5acdbde0 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -340,6 +340,15 @@ static int balloon(void *_vballoon)
s64 diff;
try_to_freeze();
+
+ /*
+ * Reading the config on the ccw backend involves an
+ * allocation, so we may actually sleep and have an
+ * extra iteration. It's extremely unlikely, and this
+ * isn't a fast path in any sense.
+ */
+ sched_annotate_sleep();
+
wait_event_interruptible(vb->c...
2015 Mar 06
0
virtio balloon: do not call blocking ops when !TASK_RUNNING
...on.c b/drivers/virtio/virtio_balloon.c
> > index 0413157f3b49..3f4d5acdbde0 100644
> > --- a/drivers/virtio/virtio_balloon.c
> > +++ b/drivers/virtio/virtio_balloon.c
> > @@ -340,6 +340,15 @@ static int balloon(void *_vballoon)
> > s64 diff;
> >
> > try_to_freeze();
> > +
> > + /*
> > + * Reading the config on the ccw backend involves an
> > + * allocation, so we may actually sleep and have an
> > + * extra iteration. It's extremely unlikely,
>
> Hmm, this part of the comment seems wrong to me.
> Reading...
2015 Mar 06
0
virtio balloon: do not call blocking ops when !TASK_RUNNING
...on.c b/drivers/virtio/virtio_balloon.c
> > index 0413157f3b49..3f4d5acdbde0 100644
> > --- a/drivers/virtio/virtio_balloon.c
> > +++ b/drivers/virtio/virtio_balloon.c
> > @@ -340,6 +340,15 @@ static int balloon(void *_vballoon)
> > s64 diff;
> >
> > try_to_freeze();
> > +
> > + /*
> > + * Reading the config on the ccw backend involves an
> > + * allocation, so we may actually sleep and have an
> > + * extra iteration. It's extremely unlikely,
>
> Hmm, this part of the comment seems wrong to me.
> Reading...
2007 Jan 17
6
Ehancement to domU suspend/resume
Hi, all,
When working on adding PM support to xen, we realized that
some enhancements are required to suspend/resume domU. Following
is some background and thoughts, and welcome on comments. :-)
Currently we use a simple approach (pause/unpause) for domU
when ready to pull whole platform into a power save state, saying a
S3. Because pause/unpause is out of domU''s knowledge, domU
2014 Nov 12
3
[PATCH v2] virtio_balloon: Convert "vballon" kthread into a workqueue
...+292,22 @@ static void update_balloon_size(struct virtio_balloon *vb)
&actual);
}
-static int balloon(void *_vballoon)
+static void balloon(struct work_struct *work)
{
- struct virtio_balloon *vb = _vballoon;
-
- set_freezable();
- while (!kthread_should_stop()) {
- s64 diff;
-
- try_to_freeze();
- wait_event_interruptible(vb->config_change,
- (diff = towards_target(vb)) != 0
- || vb->need_stats_update
- || kthread_should_stop()
- || freezing(current));
- if (vb->need_stats_update)
- stats_handle_request(vb);
- if (diff > 0)
- fill_balloon(vb, diff...