All of lore.kernel.org
 help / color / mirror / Atom feed
* IIO Coding Task 2 ?
@ 2016-02-24 19:43 Alison Schofield
       [not found] ` <56CEB5B4.5060605@intel.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Alison Schofield @ 2016-02-24 19:43 UTC (permalink / raw)
  To: daniel.baluta; +Cc: outreachy-kernel

Daniel,

I'm working on IIO coding task #2.

In 'auditing IIO device state updates to locking' I believe that
in addition to "Updates to state changes must always take mlock",
any checks of device state must also take mlock.  And that is,
what you are asking us to do in this task.
(iio_buffer_enabled is checking device state, not setting)

Basically, anywhere iio_dev->currentmode is set|checked use mlock.

Right track?

For this task, I'm not clear on why we are doing RFC.  In practice, 
mlock is used very consistently for protecting device state.
Can you clarify the controversial aspect?

Thanks!
alisons


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-01  9:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-24 19:43 IIO Coding Task 2 ? Alison Schofield
     [not found] ` <56CEB5B4.5060605@intel.com>
2016-02-25  8:55   ` Daniel Baluta
2016-02-25 18:26     ` Alison Schofield
2016-03-01  3:47       ` Alison Schofield
2016-03-01  9:43         ` Daniel Baluta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.