lkml.org 
[lkml]   [2003]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] kthread_create
On Wed, 31 Dec 2003, Srivatsa Vaddagiri wrote:

> On Tue, Dec 30, 2003 at 09:56:05PM -0800, Davide Libenzi wrote:
> > Also, what happens in the task woke up by a send does not reschedule
> > before another CPU does another send? Wouldn't a message be lost?
> >
>
> The messages should not be lost because we take the cpucontrol
> semaphore in kthread_start or kthread_destroy before sending
> a (start or destroy) message.

I see, ok. At that point though, having the message struct inside the task
struct could save the *to pointer and (because of the big lock above), using
barrier and proper order in setting *from and *info, the spin lock. OTOH
the big lock above really make the global message structure private, so it
does not make much difference.



- Davide







-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.173 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site