public inbox for [email protected]
 help / color / mirror / Atom feed
* Does need memory barrier to synchronize req->result with req->iopoll_completed
@ 2020-06-14 14:10 Xiaoguang Wang
  2020-06-14 15:36 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Xiaoguang Wang @ 2020-06-14 14:10 UTC (permalink / raw)
  To: io-uring; +Cc: [email protected], joseph qi

hi,

I have taken some further thoughts about previous IPOLL race fix patch,
if io_complete_rw_iopoll() is called in interrupt context, "req->result = res"
and "WRITE_ONCE(req->iopoll_completed, 1);" are independent store operations.
So in io_do_iopoll(), if iopoll_completed is ture, can we make sure that
req->result has already been perceived by the cpu executing io_do_iopoll()?

Regards,
Xiaoguang Wang

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

end of thread, other threads:[~2020-06-16 19:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-14 14:10 Does need memory barrier to synchronize req->result with req->iopoll_completed Xiaoguang Wang
2020-06-14 15:36 ` Jens Axboe
2020-06-15  2:10   ` Xiaoguang Wang
2020-06-16 17:31   ` Bijan Mottahedeh
2020-06-16 19:35     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox