All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.osdl.org
Subject: Re: question on freeze and aio
Date: Wed, 14 Feb 2007 09:25:10 -0800	[thread overview]
Message-ID: <20070214092510.5468db34.rdunlap@xenotime.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0702131557400.2741-100000@iolanthe.rowland.org>

On Tue, 13 Feb 2007 16:01:30 -0500 (EST) Alan Stern wrote:

> On Tue, 13 Feb 2007, Pavel Machek wrote:
> 
> > > No, workqueues are not frozen unless they are explicitly declared as
> > > freezeable.  Which currently is only done by XFS, AFAIKS.
> > 
> > Ok, then we have a bug in swsusp. Can someone locate _which_ workqueue
> > is used for aio... and make it freezeable?
> 
> Here is an untested patch.  Does anybody have a way to test it?
> 
> (BTW, should it be spelled "freezeable" or "freezable"?)

www.dict.org says freezable.


> Index: usb-2.6/fs/aio.c
> ===================================================================
> --- usb-2.6.orig/fs/aio.c
> +++ usb-2.6/fs/aio.c
> @@ -73,7 +73,7 @@ static int __init aio_setup(void)
>  	kioctx_cachep = kmem_cache_create("kioctx", sizeof(struct kioctx),
>  				0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL, NULL);
>  
> -	aio_wq = create_workqueue("aio");
> +	aio_wq = create_freezeable_workqueue("aio");
>  
>  	pr_debug("aio_setup: sizeof(struct page) = %d\n", (int)sizeof(struct page));


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2007-02-14 17:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09 16:04 question on freeze and aio Oliver Neukum
2007-02-09 21:24 ` Rafael J. Wysocki
2007-02-09 21:29 ` Nigel Cunningham
2007-02-09 22:03   ` Alan Stern
2007-02-09 22:08     ` Nigel Cunningham
2007-02-09 22:16       ` Rafael J. Wysocki
2007-02-09 22:23       ` Alan Stern
2007-02-09 22:09     ` Rafael J. Wysocki
2007-02-13 10:18       ` Pavel Machek
2007-02-13 15:53         ` Rafael J. Wysocki
2007-02-14 21:44           ` Pavel Machek
2007-02-13 21:01         ` Alan Stern
2007-02-14 17:25           ` Randy Dunlap [this message]
2007-02-14 21:32             ` Rafael J. Wysocki
2007-02-14 21:28           ` Rafael J. Wysocki
2007-02-14 23:40             ` Rafael J. Wysocki
2007-02-13 10:17     ` Pavel Machek
2007-02-13 15:54       ` Rafael J. Wysocki
2007-02-13 10:16 ` 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=20070214092510.5468db34.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=linux-pm@lists.osdl.org \
    --cc=stern@rowland.harvard.edu \
    /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.