summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660/cd9660_vfsops.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-02-27 18:30:01 +0000
committerjhb <jhb@FreeBSD.org>2002-02-27 18:30:01 +0000
commitec01b5bdbc40025303ba133be03a747c8dc62a2c (patch)
tree2a10480f644fa7d553c28438685c71db5365dc83 /sys/fs/cd9660/cd9660_vfsops.c
parentce9dcc878409c8e9fe6934c5dc7793c6d4f2bc8e (diff)
downloadFreeBSD-src-ec01b5bdbc40025303ba133be03a747c8dc62a2c.zip
FreeBSD-src-ec01b5bdbc40025303ba133be03a747c8dc62a2c.tar.gz
Temporarily lock Giant while we update td_ucred. The proc lock doesn't
fully protect p_ucred yet so Giant is needed until all the p_ucred locking is done. This is the original reason td_ucred was not used immediately after its addition. Unfortunately, not using td_ucred is not enough to avoid problems. Since p_ucred could be stale, we could actually be dereferencing a stale pointer to dink with the refcount, so we really need Giant to avoid foot-shooting. This allows td_ucred to be safely used as well.
Diffstat (limited to 'sys/fs/cd9660/cd9660_vfsops.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud