9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] kfs locks
@ 2004-03-07 17:55 David Tolpin
  2004-03-07 19:56 ` Charles Forsyth
  0 siblings, 1 reply; 7+ messages in thread
From: David Tolpin @ 2004-03-07 17:55 UTC (permalink / raw)
  To: 9fans

Hi,

cmd_sync sets 

rlock(&mainlock); 

...
syncall();
...
runlock(&mainlock);

...
syncproc, the background process forked by kfs, runs 
syncblock()
without setting rlock(&mainlock)

Can it the cause that I am getting wrenwrite errors after
'check f' on startup, if cmd_sync is not called after cmd_check
and before forking 'sync' and 'serve'?

I am still struggling to understand the problem. I've changed
the disk to be sure and still can reproduce the error if cmd_sync
is not called after the list of free blocks is rebuilt after blackdown.

David Tolpin


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

end of thread, other threads:[~2004-03-08  5:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-07 17:55 [9fans] kfs locks David Tolpin
2004-03-07 19:56 ` Charles Forsyth
2004-03-07 20:03   ` David Tolpin
2004-03-07 20:12     ` Charles Forsyth
2004-03-07 20:20       ` David Tolpin
2004-03-08  3:27         ` jmk
2004-03-08  5:26           ` David Tolpin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).