Re: run queue

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

 



On Tue, Jul 27, 2004 at 12:22:22 +0200, Tomasz Paszkowski wrote:
> On Tue, Jul 27, 2004 at 11:00:32AM +0200, Jan Hudec wrote:
> > If it's from syscall, fixing it would be easy -- just add something
> > like:
> > if(current->need_resched) schedule()
> > into the loop.
> 
> Hello,
> 
> It dosen't work. This line panics the kernel with meesage about kernel
> bug in sched.c at 564 line.
> 
> 
> -- sched.c --
>         if (unlikely(in_interrupt())) {
>                 printk("Scheduling in interrupt\n");
>                 BUG();
>         }
> -- endof sched.c ---

Then it obviously runs from work queue and complete rewrite would be
required. Please, post a bug report on lkml and CC appropriate
maintainer (acoording to MAINTAINERS file).

Generaly it means the function must be broken up to pieces and state
somehow passed between them. And that's not simple. Consult the author
as to how to rewrite it.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux