From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 12 Apr 2005 12:13:00 -0500 From: Sam To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [9fans] page fault with lock held Topicbox-Message-UUID: 366bb6e2-ead0-11e9-9d60-3106f5b1d025 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