All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: suspend.c: This is broken, fixme
Date: Mon, 3 Jun 2002 13:08:16 +0200	[thread overview]
Message-ID: <20020603110816.GI820@suse.de> (raw)
In-Reply-To: <20020603095507.GA3030@elf.ucw.cz>

On Mon, Jun 03 2002, Pavel Machek wrote:
> Hi!
> 
> I found this in 2.5.20...
> 
> --- a/kernel/suspend.c  Sun Jun  2 18:44:56 2002
> +++ b/kernel/suspend.c  Sun Jun  2 18:44:56 2002
> @@ -64,6 +64,7 @@
>  #include <asm/mmu_context.h>
>  #include <asm/pgtable.h>
>  #include <asm/io.h>
> +#include <linux/swapops.h>
> 
>  unsigned char software_suspend_enabled = 0;
> 
> @@ -300,7 +301,8 @@
>  static void do_suspend_sync(void)
>  {
>         while (1) {
> -               run_task_queue(&tq_disk);
> +               blk_run_queues();
> +#error this is broken, FIXME
>                 if (!TQ_ACTIVE(tq_disk))
>                         break;
> 
> . Why is it broken?

Hey, I even cc'ed you on the patch when it went to Linus... Lets look at
what happened before: run tq_disk, then check if it is active. What
prevents tq_disk from being active right after you issue the TQ_ACTIVE
check? Nothing. And I'm not sure exactly what semantics you think
running tq_disk has. I suspect you are looking for a 'start any pending
i/o and return when it has completed', which is far from what happens.
Running tq_disk will _try_ to start _some_ I/O, and eventually, in time,
the currently pending requests will have completed. In the mean time,
more I/O could have been added though.

-- 
Jens Axboe


  reply	other threads:[~2002-06-03 11:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-03  9:55 suspend.c: This is broken, fixme Pavel Machek
2002-06-03 11:08 ` Jens Axboe [this message]
2002-06-03 11:32   ` Pavel Machek
2002-06-03 11:35     ` Jens Axboe
2002-06-03 12:13       ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020603110816.GI820@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.