linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Use of mmap_sem in map_user_kiobuf
@ 2001-07-06 10:50 Adrian Cox
  2001-07-06 16:56 ` Andrea Arcangeli
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Cox @ 2001-07-06 10:50 UTC (permalink / raw)
  To: linux-mm

Does map_user_kiobuf really need to get a write lock on the mmap_sem? 
 From examination of the code, all it can do is expand_stack(), fault in 
pages, and increment the count on a page.

Is there anything I've missed? Would it be safe to use down_read(), 
up_read() instead?

-- 
Adrian Cox   http://www.humboldt.co.uk/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

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

* Re: Use of mmap_sem in map_user_kiobuf
  2001-07-06 10:50 Use of mmap_sem in map_user_kiobuf Adrian Cox
@ 2001-07-06 16:56 ` Andrea Arcangeli
  0 siblings, 0 replies; 2+ messages in thread
From: Andrea Arcangeli @ 2001-07-06 16:56 UTC (permalink / raw)
  To: Adrian Cox; +Cc: linux-mm

On Fri, Jul 06, 2001 at 11:50:38AM +0100, Adrian Cox wrote:
> Does map_user_kiobuf really need to get a write lock on the mmap_sem? 
>  From examination of the code, all it can do is expand_stack(), fault in 
> pages, and increment the count on a page.
> 
> Is there anything I've missed? Would it be safe to use down_read(), 
> up_read() instead?

yes, it should be ok.

Andrea
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

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

end of thread, other threads:[~2001-07-06 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-06 10:50 Use of mmap_sem in map_user_kiobuf Adrian Cox
2001-07-06 16:56 ` Andrea Arcangeli

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