[linux-pm] question on freeze and aio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ***


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux