public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] A rare failure to wake up sync tasks
@ 2024-07-10 20:32 Benjamin Coddington
  2024-07-10 20:32 ` [RFC PATCH 1/1] SUNRPC: Fix a race to wake a sync task Benjamin Coddington
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Coddington @ 2024-07-10 20:32 UTC (permalink / raw)
  To: linux-nfs

Hey all - RFC patch here because this race is very hard to reproduce so I
will be testing this for a few days before feeling certain that this fix
does the job.

Meantime, I'd love some feedback from any one that has mastered load/store
races.  Do I really need a full smp_mb() here?  I think I do because the
race is not to the tk_runstate's ACTIVE bit which is set under the queue
lock, but rather to the wait_queue_head..  I'd love to be corrected.

Comments much appreciated.. this problem has been very elusive to catch.

Benjamin Coddington (1):
  SUNRPC: Fix a race to wake a sync task

 net/sunrpc/sched.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.44.0


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

end of thread, other threads:[~2024-07-10 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-10 20:32 [RFC PATCH 0/1] A rare failure to wake up sync tasks Benjamin Coddington
2024-07-10 20:32 ` [RFC PATCH 1/1] SUNRPC: Fix a race to wake a sync task Benjamin Coddington

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