Re: [patch 7/21] openmosix/mig_do_receive_cleanup.patch mig_do_receive cleanup
Matt Dew <[email protected]> Thu, 2 Nov 2006 14:56:19 -0700
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Organization | seakr.com |
| Message-ID | <[email protected]> |
On Thursday 02 November 2006 03:13, Vincent Hanquez wrote:
> On Wed, Nov 01, 2006 at 05:11:03AM +0100, Florian Delizy wrote:
> > + protocol_sleep:
> > + write_unlock( &mytsk->spinlock );
> > + schedule();
> > + set_current_state(TASK_INTERRUPTIBLE);
> > + write_lock( &mytsk->spinlock );
>
> schedule and then set_current_state ? looks bogus to me.
According to the kernel devs, that's the correct way inside loops. It prevents
lost wakeup problems.
>
> > @@ -575,8 +588,9 @@
> > * Description:
> > * This is the newly created process.
> > **/
> > -KCOMD_NSTATIC NORET_TYPE int mig_handle_migration(pid_t *pid)
> > +KCOMD_NSTATIC int mig_handle_migration(void *param)
> > {
> > + pid_t *pid = (pid_t *) param;
> > task_t *p = current;
> > int error;
> >
> > @@ -621,5 +635,6 @@
> > OMBUG("failed\n");
> > do_exit(SIGKILL);
> > /*NOTREACHED*/
> > + return 0;
>
> that's bogus. NORET_TYPE should be specified, and no return code.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642