9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] page fault with lock held
@ 2005-04-12 17:13 Sam
  2005-04-12 17:28 ` jmk
  0 siblings, 1 reply; 17+ messages in thread
From: Sam @ 2005-04-12 17:13 UTC (permalink / raw)
  To: 9fans

Hello 9fans,

I'm testing my AoE driver and have hit something curious.

On devaoe.c read, after getting the sectors from the
remote disk and when trying to copy the data to the
user process using memmove, I get a write page fault.
At the time, I happen to be holding a spinlock over
the device structure, which causes both
port/fault.c:/^fault/ and port/fault.c/^seg/ (via qlock)
to squawk at me about up->nlocks.ref > 0.

The user address in question is 7fffaedc.  Firstly, does
this address seem appropriate and secondly, is dropping
the spinlock during the memmove appropriate?

All signs point to yes, but I'd like some reassurance.

Cheers,

Sam



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

end of thread, other threads:[~2005-04-13 21:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-12 17:13 [9fans] page fault with lock held Sam
2005-04-12 17:28 ` jmk
2005-04-12 17:31   ` Russ Cox
2005-04-12 17:37     ` Brantley Coile
     [not found]     ` <154c5e08c9c69f0f288db9ae8050a015@coraid.com>
2005-04-12 17:47       ` Russ Cox
2005-04-12 17:48   ` Charles Forsyth
2005-04-12 18:23   ` Sam
2005-04-12 20:33     ` geoff
2005-04-12 20:41       ` Dan Cross
2005-04-12 20:58         ` Russ Cox
2005-04-13 13:13           ` Dan Cross
2005-04-13 13:20             ` Brantley Coile
2005-04-13 18:48               ` Tim Newsham
2005-04-13 21:09                 ` Dan Cross
2005-04-12 22:07       ` Christopher Nielsen
2005-04-12 22:57         ` Brantley Coile
2005-04-13  7:46           ` Charles Forsyth

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).