> +     if (list_empty(&intf->cmd_rcvrs))
> +             INIT_LIST_HEAD(&list);
> +     else {
> +             list.next = intf->cmd_rcvrs.next;
> +             list.prev = intf->cmd_rcvrs.prev;
> +             INIT_LIST_HEAD(&intf->cmd_rcvrs);
> +
> +             /*
> +              * At this point the list body still points to
> +              * intf->cmd_rcvrs.  Wait for any readers to finish
> +              * using the list before we switch the list body over
> +              * to the new list.
> +              */
> +             synchronize_rcu();
> +
> +             /* Ready the list for use. */
> +             list.next->prev = &list;
> +             list.prev->next = &list;
> +     }

This kind of thing must not be opencoded in drivers.  Please add
a new list_splice_rcu helper to list.h


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to