mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/6] vmtrunc: lowlat vmtruncate drop i_mmap_lock
@ 2004-10-03 18:21 Hugh Dickins
  2004-10-03 18:23 ` [PATCH 1/6] vmtrunc: truncate_count not atomic Hugh Dickins
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Hugh Dickins @ 2004-10-03 18:21 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Andrew Morton, Andrea Arcangeli, Rajesh Venkatasubramanian,
	Lorenzo Allegrucci, linux-kernel

Here's a set of patches against 2.6.9-rc3-mm1, or Ingo's -S7 VP tree:
allow lower latency in vmtruncate (more generally, unmap_mapping_range)
by dropping the i_mmap_lock when required.  Though I've been focussing
on correctness rather than latency myself: do these work for you, Ingo?

1/6 undoes something of Andrea's, 2/6 undoes something of Ingo's:
I thought I might as well provide patches as ask the questions, please
let us know why if you disagree with them.  3/6 is cosmetic, 4/6 is
the real work, 5/6 corrects some loose ends, 6/6 is for testing.

Worth the effort, and ~700 bytes bloat, and additional int in each vma?
If only root could run-bash-shared-mappings, I'd say not worth it; but
it seems a little like prio_tree itself, we're not sure we need it,
but feel more secure to have the solution.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
---

 drivers/mtd/devices/blkmtd.c |    1 
 fs/inode.c                   |    1 
 include/linux/fs.h           |    2 
 include/linux/mm.h           |    8 +
 kernel/fork.c                |    1 
 mm/memory.c                  |  223 ++++++++++++++++++++++++++++++++++---------
 mm/mmap.c                    |   14 ++
 mm/mremap.c                  |   16 +--
 mm/rmap.c                    |    9 -
 mm/truncate.c                |    1 
 10 files changed, 215 insertions(+), 61 deletions(-)


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

end of thread, other threads:[~2004-10-03 18:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-03 18:21 [PATCH 0/6] vmtrunc: lowlat vmtruncate drop i_mmap_lock Hugh Dickins
2004-10-03 18:23 ` [PATCH 1/6] vmtrunc: truncate_count not atomic Hugh Dickins
2004-10-03 18:24 ` [PATCH 2/6] vmtrunc: restore unmap_vmas zap_bytes Hugh Dickins
2004-10-03 18:36   ` Ingo Molnar
2004-10-03 18:25 ` [PATCH 3/6] vmtrunc: unmap_mapping_range_tree Hugh Dickins
2004-10-03 18:26 ` [PATCH 4/6] vmtrunc: unmap_mapping dropping i_mmap_lock Hugh Dickins
2004-10-03 18:27 ` [PATCH 5/6] vmtrunc: vm_truncate_count race caution Hugh Dickins
2004-10-03 18:28 ` [PATCH 6/6] vmtrunc: bug if page_mapped Hugh Dickins

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

Powered by JetHome