login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
9
Re: [RFC][PATCH 06/30] make open_namei() return a filp
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Christoph Hellwig
Subject:
Re: [RFC][PATCH 06/30] make open_namei() return a filp
Date: Friday, February 8, 2008 - 10:09 pm
On Fri, Feb 08, 2008 at 02:26:54PM -0800, Dave Hansen wrote:
quoted text
> > open_namei() will, in the future, need to take mount write counts > over its creation and truncation (via may_open()) operations. It > needs to keep these write counts until any potential filp that is > created gets __fput()'d. > > This gets complicated in the error handling and becomes very murky > as to how far open_namei() actually got, and whether or not that > mount write count was taken. > > Creating the filps inside of open_namei() lets us shift the write > count to be taken and released along with the filp. We can hold > a temporary write count during those creation and truncation > operations, then release them once the write for the filp has > been established. > > Any caller who gets a 'struct file' back must consider that filp > instantiated and fput() it normally. The callers no longer > have to worry about ever manually releasing a mnt write count.
This patch description is not correct anymore, open_namei is actually gone with this patch as it got merged into do_filp_open. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH 00/30] Read-only bind mounts (-mm resend)
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 01/30] reiserfs: eliminate private use of stru ...
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 02/30] hppfs pass vfsmount to dentry_open()
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 03/30] check for null vfsmount in dentry_open()
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 04/30] fix up new filp allocators
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 05/30] do namei_flags calculation inside open_ ...
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 06/30] make open_namei() return a filp
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 07/30] r/o bind mounts: stub functions
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 08/30] r/o bind mounts: create helper to drop ...
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 09/30] r/o bind mounts: drop write during emer ...
, Dave Hansen
, (Fri Feb 8, 3:26 pm)
[RFC][PATCH 10/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 11/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 12/30] r/o bind mounts: elevate mnt_writers fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 13/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 14/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 15/30] r/o bind mounts: write counts for time ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 16/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 17/30] r/o bind mounts: write count for file_u ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 18/30] r/o bind mounts: write counts for link/ ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 19/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 20/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 21/30] r/o bind mounts: get write access for v ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 22/30] r/o bind mounts: elevate write count fo ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 23/30] r/o bind mounts: write counts for trunc ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 24/30] r/o bind mounts: elevate count for xfs ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 25/30] r/o bind mounts: make access() use new ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 26/30] r/o bind mounts: check mnt instead of s ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 27/30] r/o bind mounts: get callers of vfs_mkn ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 28/30] r/o bind mounts: track numbers of write ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 29/30] r/o bind mounts: honor mount writer cou ...
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
[RFC][PATCH 30/30] r/o bind mounts: debugging for missed calls
, Dave Hansen
, (Fri Feb 8, 3:27 pm)
Re: [RFC][PATCH 06/30] make open_namei() return a filp
, Christoph Hellwig
, (Fri Feb 8, 10:09 pm)
Re: [RFC][PATCH 00/30] Read-only bind mounts (-mm resend)
, Christoph Hellwig
, (Fri Feb 8, 11:39 pm)
Re: [RFC][PATCH 00/30] Read-only bind mounts (-mm resend)
, Al Viro
, (Sat Feb 9, 12:57 am)
Re: [RFC][PATCH 00/30] Read-only bind mounts (-mm resend)
, Christoph Hellwig
, (Mon Feb 11, 10:06 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Francis Moreau
Re: Disk geometry from /sys
Rafael J. Wysocki
[Bug #11407] suspend: unable to handle kernel paging request
Christoph Lameter
Re: [bug] SLUB + mm/slab.c boot crash in -rc9
Jeremy Fitzhardinge
Re: [2.6.25] compat VDSO option not disabling
Rafael J. Wysocki
[Bug #11551] Semi-repeatable hard lockup on 2.6.27-rc6
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Tait
Re: [PATCH] Replace hard-coded path with one from <paths.h>
Frans Pop
'git gc --aggressive' effectively unusable
Stephan Beyer
Re: git sequencer prototype
Lynn Lin
Re: clearcase migration to git
linux-netdev
:
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
git-commits-head
:
Linux Kernel Mailing List
.gitignore: ignore *.lzo files
Linux Kernel Mailing List
init: Open /dev/console from rootfs
Linux Kernel Mailing List
udp: fix for unicast RX path optimization
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
openbsd-misc
:
nixlists
Re: Which laptops do the developers use?
Robert
disklabel - cylinder rounding
admin
Drive a 2009 car from R799p/m
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Colocation donated by:
Syndicate