Re: [PATH] swsusp update 1/3

Pavel Machek
2004-12-20T22:49:26Z

Hi!

> > + if (nr_free_pages() < nr_copy_pages + PAGES_FOR_IO) {
> > + printk("swsusp: need %d pages, free %d pages\n",
> > + nr_copy_pages, nr_free_pages());
> > + printk("swsusp: Freeing memory:... ");
> > + while (shrink_all_memory(nr_copy_pages * 2)) {
> > + current->state = TASK_INTERRUPTIBLE;
> > + schedule_timeout(HZ/5);
>
> This should be msleep_interruptible() [I do not see any wait-queue events around
> this code].

Agreed, it also makes code nicer... Anyway, the loop should not be
needed in the first place....

Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!