linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [Patch 0/7] Mlock:  doc, patch grouping and error return cleanups
@ 2008-08-22 21:10 Lee Schermerhorn
  2008-08-22 21:10 ` [PATCH 1/7] Mlock: fix __mlock_vma_pages_range comment block Lee Schermerhorn
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Lee Schermerhorn @ 2008-08-22 21:10 UTC (permalink / raw)
  To: akpm; +Cc: riel, linux-mm, kosaki.motohiro, Eric.Whitney

The six patches introduced by this message are against:

	2.6.27-rc3-mmotm-080821-0003

These patches replace the series of 6 patches posted by
/me at:

	http://marc.info/?l=linux-mm&m=121917996115763&w=4

those patches themselves replace the series of 5 RFC patches
posted by Kosaki Motohiro at:

	http://marc.info/?l=linux-mm&m=121843816412096&w=4


Patch 1/7 is a rework of KM's cleanup of the __mlock_vma_pages_range()
comment block.  I tried to follow kerneldoc format.  Randy will tell me if
I made a mistake :)

Patch 2/7 is a rework of KM's patch to remove the locked_vm 
adjustments for "special vmas" during mmap() processing.  Kosaki-san
wanted to "kill" this adjustment.  After discussion, he requested that
it be resubmitted as a separate patch.  This is the first step in providing
the separate patch [even tho' I consider this part of correctly "handling
mlocked pages during mmap()..."].

Patch 3/7 resubmits the locked_vm adjustment during mmap(MAP_LOCKED)) to
match the explicit mlock() behavior.

Patch 4/7 is KM's patch to change the error return for mlock
when, after downgrading the mmap semaphore to read during population of
the vma and switching back to write lock as our callers expect, the 
vma that we just locked no longer covers the range we expected.  See
the description.

Patch 5/7 is a new patch to ensure that locked_vm is updated correctly
when munmap()ing an mlocked region.

Patch 6/7 backs out a mainline patch to make_pages_present() to adjust
the error return to match the Posix specification for mlock error
returns.  make_pages_present() is used by other than mlock, so this
isn't really the appropriate place to make the change, even tho'
apparently only mlock() looks at the return value from make_pages_present().

Patch 7/7 fixes the mlock error return to be Posixly Correct in the
appropriate [IMO] paths in mlock.c.  Reworked in this version to
hide pte population errors [get_user_pages()] during mlock from mmap()
and related callers.

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2008-08-25 13:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-22 21:10 [Patch 0/7] Mlock: doc, patch grouping and error return cleanups Lee Schermerhorn
2008-08-22 21:10 ` [PATCH 1/7] Mlock: fix __mlock_vma_pages_range comment block Lee Schermerhorn
2008-08-22 21:10 ` [PATCH 2/7] Mlock: backout locked_vm adjustment during mmap() Lee Schermerhorn
2008-08-22 21:10 ` [PATCH 3/7] Mlock: resubmit locked_vm adjustment as separate patch Lee Schermerhorn
2008-08-22 23:11   ` Andrew Morton
2008-08-25 13:01     ` Lee Schermerhorn
2008-08-22 21:10 ` [PATCH 4/7] Mlock: fix return value for munmap/mlock vma race Lee Schermerhorn
2008-08-22 21:11 ` [PATCH 5/7] Mlock: update locked_vm on munmap() of mlocked() region Lee Schermerhorn
2008-08-22 21:11 ` [PATCH 6/7] Mlock: revert mainline handling of mlock error return Lee Schermerhorn
2008-08-22 21:11 ` [PATCH 7/7] Mlock: make mlock error return Posixly Correct Lee Schermerhorn

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