summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-09-23 18:43:37 +0000
committeroga <oga@openbsd.org>2010-09-23 18:43:37 +0000
commit10af85c94bf39b02f173c904d037c6e4f911bdef (patch)
tree31f878ab29a782a1403a729ce6eec65043711b03 /sys/kern/subr_disk.c
parentChange: (diff)
downloadwireguard-openbsd-10af85c94bf39b02f173c904d037c6e4f911bdef.tar.xz
wireguard-openbsd-10af85c94bf39b02f173c904d037c6e4f911bdef.zip
In procfs_root(), while the vn_lock on a newly-allocated vnode can not
fail it is still good practise to either check the return value or to provide a flag that won't (to avoid copy pasted code that gets it wrong). So change LK_EXCLUSIVE to LK_EXCLUSIVE | LK_RETRY, removing the one caller of vn_lock in the tree that doesn't either pass LK_RETRY or check the return value. ok thib@, jsing@ as part of a larger diff.
Diffstat (limited to 'sys/kern/subr_disk.c')
0 files changed, 0 insertions, 0 deletions