Skip site navigation (1)Skip section navigation (2)
Date:      15 Nov 2002 22:11:17 +0300
From:      "Vladimir B. " Grebenschikov <vova@sw.ru>
To:        fs@freebsd.org
Subject:   Question about not locked vnode in VOP_RENAME
Message-ID:  <1037387476.1037.6.camel@vbook>

next in thread | raw e-mail | index | archive | help

Hi ppl

Question about

int
VOP_RENAME(struct vnode *fdvp, struct vnode *fvp,
           struct componentname *fcnp, struct vnode *tdvp,
           struct vnode *tvp, struct componentname *tcnp);

It gets fdvp unlocked. Why it is differ from other similar VOPs.
What will happens if between VOP_LOOKUP and VOP_RENAME
another VOP_LOOKUP will happens, say for for file removal in same
directory ?
Second lookup can destroy in-inode data (for ufs) saved by first lookup.

It is seems that panics 
http://spitfire.velocet.net/pipermail/freebsd-stable/2002-January/025074.html
http://docs.freebsd.org/mail/archive/1998/freebsd-current/19980913.freebsd-current.html
are because this race.

-- 
Vladimir B. Grebenschikov <vova@sw.ru>
SWsoft Inc.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1037387476.1037.6.camel>