Re: [RFC/RFT 01/10] i2c: add 'is_suspended' flag for i2c adapters

From
Wolfram Sang <hidden>
Date
2018-12-18 23:33:58
Also in
linux-arm-kernel, linux-i2c, linux-renesas-soc, lkml
Reply to
Peter Rosin, 2018-12-10
quoted
+	unsigned int is_suspended:1;	/* owned by the I2C core */
When more stuff is added to this bit field (which always happens at
some point) updates to all members of the bit field will have to use
the same root-adapter-locking, or we will suffer from RMW-races. So
this feels like an invitation for future disaster. Maybe a comment
about that to remind our future selves? Or perhaps the bit field
should be avoided altogether?
Changed to bool. Thanks!

Attachments

Thread (29 messages) 29 messages, 9 authors, last reply 2018-12-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help