> That raises the question how the issue is to be solved. To me the obvious > solution to a lack of memory ordering is to specify memory ordering > explicitely. However, I seem to be in the minority. > > The other way around it would be to use wait_for_completion(). > Oppinions?
Memory barriers are confusing enough even for folk that think they understand them ... strongly worth avoiding them. There is no one-size-fits-all solution. Using a "struct completion" is great when that's the correct model: some task is waiting for the URB to complete. - Dave ------------------------------------------------------------------------- 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 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
