lkml.org 
[lkml]   [2008]   [Feb]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 3 Feb 2008 12:53:02 +0200
From"Pekka Enberg" <>
SubjectRe: [rfc] direct IO submission and completion scalability issues
Hi Nick,

On Feb 3, 2008 11:52 AM, Nick Piggin <npiggin@suse.de> wrote:
> +asmlinkage void smp_call_function_fast_interrupt(void)
> +{

[snip]

> +       while (!list_empty(&list)) {
> +               struct call_single_data *data;
> +
> +               data = list_entry(list.next, struct call_single_data, list);
> +               list_del(&data->list);
> +
> +               data->func(data->info);
> +               if (data->wait) {
> +                       smp_mb();
> +                       data->wait = 0;

Why do we need smp_mb() here (maybe add a comment to keep
Andrew/checkpatch happy)?

                        Pekka


\
 
 \ /
  Last update: 2008-02-03 11:55    [from the cache]
©2003-2008