Page MenuHomeFreeBSD
Feed Advanced Search

Sep 24 2023

mjg committed rG5034749bd436: vfs: group vnode-related sysctls under vfs.vnode (authored by mjg).
vfs: group vnode-related sysctls under vfs.vnode
Sep 24 2023, 9:47 PM
mjg committed rGa5e0eea4ca51: vfs: retire kern.minvnodes (authored by mjg).
vfs: retire kern.minvnodes
Sep 24 2023, 9:47 PM
mjg committed rGf4f4f48e1293: vfs: retire vnlru_under_unlocked (authored by mjg).
vfs: retire vnlru_under_unlocked
Sep 24 2023, 9:47 PM
mjg committed rG4e5833d9aeb9: vfs: use vnlru_read_freevnodes for the freevnodes sysctl (authored by mjg).
vfs: use vnlru_read_freevnodes for the freevnodes sysctl
Sep 24 2023, 9:47 PM
mjg committed rG6d5db9c5239b: vfs: fix stale comment about freevnodes management (authored by mjg).
vfs: fix stale comment about freevnodes management
Sep 24 2023, 9:47 PM
mjg committed rGdc804471fa88: vfs cache: garbage collect the fullpathfail2 counter (authored by mjg).
vfs cache: garbage collect the fullpathfail2 counter
Sep 24 2023, 9:47 PM
mjg committed rG3e8f649ec351: vfs: don't kick vnlru if it is already running (authored by mjg).
vfs: don't kick vnlru if it is already running
Sep 24 2023, 9:47 PM
mjg committed rGaeb0da3771a5: vfs: drop one vnode list lock trip during vnlru free recycle (authored by mjg).
vfs: drop one vnode list lock trip during vnlru free recycle
Sep 24 2023, 9:47 PM
mjg committed rGefc027d99c76: ufs: restore name cache fast path lookup (authored by mjg).
ufs: restore name cache fast path lookup
Sep 24 2023, 9:47 PM
mjg committed rG2701cbf16165: vfs cache: fix a hang when bumping vnode limit too high (authored by mjg).
vfs cache: fix a hang when bumping vnode limit too high
Sep 24 2023, 9:47 PM
mjg committed rGfb4c1757a920: drm2: whack set-but-not-used warns (authored by mjg).
drm2: whack set-but-not-used warns
Sep 24 2023, 9:47 PM
mjg committed rGc76dfb929e70: vfs: fix reference counting/locking on LK_UPGRADE error (authored by olce).
vfs: fix reference counting/locking on LK_UPGRADE error
Sep 24 2023, 10:45 AM

Sep 23 2023

mjg added inline comments to D41936: libc: Rewrite quick_exit() and at_quick_exit() using C11 atomics..
Sep 23 2023, 10:38 PM
mjg added inline comments to D41936: libc: Rewrite quick_exit() and at_quick_exit() using C11 atomics..
Sep 23 2023, 12:31 PM
mjg committed rGbb124a0f611a: vfs cache: retire dothits and dotdothits counters (authored by mjg).
vfs cache: retire dothits and dotdothits counters
Sep 23 2023, 12:12 AM

Sep 22 2023

mjg committed rGe5114cc203a6: vfs: count how many times vnlru got woken up due to vnode shortage (authored by mjg).
vfs: count how many times vnlru got woken up due to vnode shortage
Sep 22 2023, 9:52 PM
mjg committed rG873b6cd62043: vfs: stabilize freevnodes_old (authored by mjg).
vfs: stabilize freevnodes_old
Sep 22 2023, 9:52 PM
mjg committed rG1a644e8b68be: vfs: s/u_long vstir/bool vstir/ (authored by mjg).
vfs: s/u_long vstir/bool vstir/
Sep 22 2023, 9:52 PM
mjg committed rGb757ea2bb27c: vfs: group vnode-related sysctls under vfs.vnode (authored by mjg).
vfs: group vnode-related sysctls under vfs.vnode
Sep 22 2023, 9:52 PM
mjg committed rGb93b1b939381: vfs: retire kern.minvnodes (authored by mjg).
vfs: retire kern.minvnodes
Sep 22 2023, 9:52 PM
mjg committed rG07c081e59232: vfs: use vnlru_read_freevnodes for the freevnodes sysctl (authored by mjg).
vfs: use vnlru_read_freevnodes for the freevnodes sysctl
Sep 22 2023, 9:52 PM
mjg committed rGb5210f3fb260: vfs: retire vnlru_under_unlocked (authored by mjg).
vfs: retire vnlru_under_unlocked
Sep 22 2023, 9:52 PM
mjg committed rG210dd7aa1f48: vfs: fix stale comment about freevnodes management (authored by mjg).
vfs: fix stale comment about freevnodes management
Sep 22 2023, 9:52 PM
mjg committed rG25d8cf225ac2: ufs: restore name cache fast path lookup (authored by mjg).
ufs: restore name cache fast path lookup
Sep 22 2023, 9:52 PM
mjg committed rG8e4a043bad75: vfs cache: garbage collect the fullpathfail2 counter (authored by mjg).
vfs cache: garbage collect the fullpathfail2 counter
Sep 22 2023, 9:52 PM
mjg committed rG206dd9d1a82d: vfs: drop one vnode list lock trip during vnlru free recycle (authored by mjg).
vfs: drop one vnode list lock trip during vnlru free recycle
Sep 22 2023, 9:52 PM
mjg committed rG2ea531b264df: vfs: don't kick vnlru if it is already running (authored by mjg).
vfs: don't kick vnlru if it is already running
Sep 22 2023, 9:52 PM
mjg committed rG41fad6503c1e: vfs cache: fix a hang when bumping vnode limit too high (authored by mjg).
vfs cache: fix a hang when bumping vnode limit too high
Sep 22 2023, 9:52 PM
mjg added a comment to D41764: VFS cache: Make changes to 'ncsize' update 'neg_min'.

Looking at this more it was clearly a bug to have it RW to begin with, fixed here: https://cgit.FreeBSD.org/src/commit/?id=33fdf1afaea931eaa5dd14e6c097d7ffafe2fb1a

Sep 22 2023, 9:34 PM
mjg committed rG33fdf1afaea9: vfs cache: mark vfs.cache.param.size as read-only (authored by mjg).
vfs cache: mark vfs.cache.param.size as read-only
Sep 22 2023, 9:34 PM
mjg committed rG02ef039c284b: vfs cache: Drop known argument of internal cache_recalc_neg_min() (authored by olce).
vfs cache: Drop known argument of internal cache_recalc_neg_min()
Sep 22 2023, 9:27 PM
mjg closed D41763: VFS cache: Drop known argument of internal cache_recalc_neg_min().
Sep 22 2023, 9:27 PM
mjg requested changes to D41764: VFS cache: Make changes to 'ncsize' update 'neg_min'.

handling of this sysctl is already broken, it needs to be combined with cache_changesize

Sep 22 2023, 9:11 PM
mjg abandoned D41207: namei: Allow for runtime debug messages in name lookup.
Sep 22 2023, 9:05 PM
mjg commandeered D41207: namei: Allow for runtime debug messages in name lookup.

Given the above I'm closing this.

Sep 22 2023, 9:05 PM
mjg closed D41731: vfs_lookup_cross_mount(): Fix reference counting/locking on LK_UPGRADE error.
Sep 22 2023, 9:00 PM
mjg committed rG02cbc029dac9: vfs: fix reference counting/locking on LK_UPGRADE error (authored by olce).
vfs: fix reference counting/locking on LK_UPGRADE error
Sep 22 2023, 9:00 PM
mjg added a comment to D41936: libc: Rewrite quick_exit() and at_quick_exit() using C11 atomics..

What is supposed to happen when this is a multithreaded program and multiple threads call quick_exit at the same time? While it is silly for such a setup to exist, I had the misfortune of encountering it (albeit with full-blown exit(3)).

Sep 22 2023, 4:37 PM

Sep 20 2023

mjg added a comment to D41806: vfs cache: Fallback to namei to resolve symlinks with leading / in target for non-native ABI.

what is stopping having the same fallback as locked lookup?

Sep 20 2023, 8:24 PM

Sep 18 2023

mjg committed rG15314c51e810: kern: Globally define abs64 (authored by manu).
kern: Globally define abs64
Sep 18 2023, 9:17 PM
mjg committed rGbe6f70428d6c: drm2: whack set-but-not-used warns (authored by mjg).
drm2: whack set-but-not-used warns
Sep 18 2023, 9:17 PM
mjg committed rGc9130a46bca2: drm2: whack set-but-not-used warns (authored by mjg).
drm2: whack set-but-not-used warns
Sep 18 2023, 9:12 PM
mjg committed rGf829556e3b85: drm2: fix build after abs64 became global (authored by mjg).
drm2: fix build after abs64 became global
Sep 18 2023, 9:01 PM

Sep 16 2023

mjg committed rG9080190b970c: vfs: count how many times vnlru got woken up due to vnode shortage (authored by mjg).
vfs: count how many times vnlru got woken up due to vnode shortage
Sep 16 2023, 5:28 PM
mjg committed rGef89b78bb1f6: vfs: stabilize freevnodes_old (authored by mjg).
vfs: stabilize freevnodes_old
Sep 16 2023, 3:55 PM
mjg committed rG49874af3eca6: zfs: retire z_nr_znodes (authored by mjg).
zfs: retire z_nr_znodes
Sep 16 2023, 2:21 PM
mjg committed rG509d843a982b: vfs: s/u_long vstir/bool vstir/ (authored by mjg).
vfs: s/u_long vstir/bool vstir/
Sep 16 2023, 8:21 AM
mjg committed rGd3e647891243: vfs: group vnode-related sysctls under vfs.vnode (authored by mjg).
vfs: group vnode-related sysctls under vfs.vnode
Sep 16 2023, 7:41 AM
mjg committed rG2a689cadf092: vfs: retire kern.minvnodes (authored by mjg).
vfs: retire kern.minvnodes
Sep 16 2023, 7:41 AM

Sep 15 2023

mjg committed rG03bfee175269: vfs: use vnlru_read_freevnodes for the freevnodes sysctl (authored by mjg).
vfs: use vnlru_read_freevnodes for the freevnodes sysctl
Sep 15 2023, 12:07 AM

Sep 14 2023

mjg committed rGba5dc166e0f3: vfs: retire vnlru_under_unlocked (authored by mjg).
vfs: retire vnlru_under_unlocked
Sep 14 2023, 11:07 PM
mjg committed rG07f52c4b5a4f: vfs cache: garbage collect the fullpathfail2 counter (authored by mjg).
vfs cache: garbage collect the fullpathfail2 counter
Sep 14 2023, 8:37 PM
mjg committed rG9dc0c983b093: vfs: fix stale comment about freevnodes management (authored by mjg).
vfs: fix stale comment about freevnodes management
Sep 14 2023, 5:30 PM
mjg committed rG76f1153790b6: vfs: don't kick vnlru if it is already running (authored by mjg).
vfs: don't kick vnlru if it is already running
Sep 14 2023, 4:41 PM
mjg committed rG74be676d8774: vfs: drop one vnode list lock trip during vnlru free recycle (authored by mjg).
vfs: drop one vnode list lock trip during vnlru free recycle
Sep 14 2023, 3:10 PM

Sep 12 2023

mjg added a comment to D41823: Fix geom build with clang 17 and KTR enabled.

is this the only occurence of this "error" in the tree?

Sep 12 2023, 11:03 AM

Sep 11 2023

mjg added a comment to D41806: vfs cache: Fallback to namei to resolve symlinks with leading / in target for non-native ABI.

this would mean lookups of any absolute symlinks for linux emul would be guaranteed to start from scratch, wasting a lot of work

Sep 11 2023, 6:34 PM

Sep 9 2023

mjg committed rGa87c6962affc: ufs: restore name cache fast path lookup (authored by mjg).
ufs: restore name cache fast path lookup
Sep 9 2023, 9:51 PM
mjg committed rGef545fe7ba66: drm2: fix build after abs64 became global (authored by mjg).
drm2: fix build after abs64 became global
Sep 9 2023, 8:53 PM

Sep 8 2023

mjg added a comment to D41731: vfs_lookup_cross_mount(): Fix reference counting/locking on LK_UPGRADE error.

I found the bug around hte next day after introducing it, it must have slipped through the cracks afterwards.

Sep 8 2023, 8:11 PM
mjg accepted D41557: lib/libc/amd64/string: add strcspn(3) scalar, x86-64-v2 implementation, unit tests.
Sep 8 2023, 8:10 PM
mjg accepted D41567: lib/libc/amd64/string: add strspn(3) scalar, x86-64-v2 implementation, unit tests.
Sep 8 2023, 8:09 PM
mjg accepted D41598: lib/libc/amd64/string: add memchr(3) scalar, baseline implementation.
Sep 8 2023, 8:09 PM

Sep 2 2023

mjg committed rG32988c1499f8: vfs cache: fix a hang when bumping vnode limit too high (authored by mjg).
vfs cache: fix a hang when bumping vnode limit too high
Sep 2 2023, 2:48 PM
mjg committed rGf4296cfb409a: timerfd: convert timerfd_list_lock from sx to mtx (authored by mjg).
timerfd: convert timerfd_list_lock from sx to mtx
Sep 2 2023, 10:25 AM

Sep 1 2023

mjg committed rGb2a48c3cf86d: pf: retire pf_krule_to_rule and pf_kpool_to_pool (authored by mjg).
pf: retire pf_krule_to_rule and pf_kpool_to_pool
Sep 1 2023, 6:18 PM

Aug 31 2023

mjg added a comment to D41647: pf (t)ftp-proxy: use libpfctl instead of DIOCGETSTATUS.

same comment as for snmp

Aug 31 2023, 3:31 AM
mjg added a comment to D41650: snmp_pf: use libpfctl's pfctl_get_status() rather than DIOCGETSTATUS.

i don't think there is anyone to review this, just commit

Aug 31 2023, 3:31 AM
mjg accepted D41651: pf: remove DIOCGETRULE and DIOCGETSTATUS.
Aug 31 2023, 3:31 AM

Aug 27 2023

mjg committed rGedfae4b4d2b5: vfs: retried++ -> retried = true for the boolean (authored by mjg).
vfs: retried++ -> retried = true for the boolean
Aug 27 2023, 10:46 PM
mjg committed rGb18ab4f29540: vfs: trylock vnode requeue (authored by mjg).
vfs: trylock vnode requeue
Aug 27 2023, 10:46 PM
mjg committed rGa521cee3322f: vfs: try harder to find free vnodes when recycling (authored by mjg).
vfs: try harder to find free vnodes when recycling
Aug 27 2023, 10:46 PM
mjg accepted D30056: pf: Remove DIOCCLRSTATES and DIOCKILLSTATES.

I'm all for reducing tech debt and complexity in the area.

Aug 27 2023, 4:12 PM

Aug 25 2023

mjg committed rG35f36c3ee64f: vfs: track how many times vn_alloc blocked on hitting the vnode limit (authored by mjg).
vfs: track how many times vn_alloc blocked on hitting the vnode limit
Aug 25 2023, 10:58 PM
mjg committed rG84e1b8b965c2: vfs: flip deferred_inact to atomic (authored by mjg).
vfs: flip deferred_inact to atomic
Aug 25 2023, 10:56 PM
mjg committed rGb61645ef3c4e: vfs: decouple freevnodes from vnode batching (authored by mjg).
vfs: decouple freevnodes from vnode batching
Aug 25 2023, 10:55 PM
mjg committed rG5eab523053db: timerfd: compute fflags before calling falloc (authored by mjg).
timerfd: compute fflags before calling falloc
Aug 25 2023, 3:11 PM
mjg committed rG02f534b57f84: timerfd: fix up a memory leak and missing locking (authored by mjg).
timerfd: fix up a memory leak and missing locking
Aug 25 2023, 2:48 PM

Aug 24 2023

mjg committed rG60457d1ea068: ufs: try to elide the interlock in ufs_itimes (authored by mjg).
ufs: try to elide the interlock in ufs_itimes
Aug 24 2023, 11:31 PM
mjg committed rGca63cbbe9554: ufs: always call ufs_itimes on close (authored by mjg).
ufs: always call ufs_itimes on close
Aug 24 2023, 11:25 PM
mjg added inline comments to D38459: timerfd: Add native support for Linux's timerfd.
Aug 24 2023, 11:11 PM · linuxkpi, Linux Emulation
mjg committed rG712806fc4b54: vfs: retried++ -> retried = true for the boolean (authored by mjg).
vfs: retried++ -> retried = true for the boolean
Aug 24 2023, 10:52 PM
mjg committed rGc1d85ac3df82: vfs: try harder to find free vnodes when recycling (authored by mjg).
vfs: try harder to find free vnodes when recycling
Aug 24 2023, 10:14 PM

Aug 21 2023

mjg accepted D41442: lib/libc/amd64/string: add baseline implementation of memcmp, bcmp.

I only have cosmetics remarks vs the code, which I'm going to spare this time

Aug 21 2023, 8:28 AM
mjg accepted D41349: lib/libc/amd64/string: add baseline implementation of stpcpy.S.

it's all fine with me

Aug 21 2023, 8:26 AM
mjg added a comment to D41349: lib/libc/amd64/string: add baseline implementation of stpcpy.S.

tests can be moved to a different review which will land at a different date if that helps

Aug 21 2023, 1:15 AM

Aug 20 2023

mjg accepted D41349: lib/libc/amd64/string: add baseline implementation of stpcpy.S.

I thought kib had possibly unresolved concerns.

Aug 20 2023, 10:41 PM
mjg added a comment to D41349: lib/libc/amd64/string: add baseline implementation of stpcpy.S.

I have no further comments

Aug 20 2023, 9:40 PM

Aug 18 2023

mjg committed rG64e881f2db96: vfs: track how many times vn_alloc blocked on hitting the vnode limit (authored by mjg).
vfs: track how many times vn_alloc blocked on hitting the vnode limit
Aug 18 2023, 11:58 PM

Aug 11 2023

mjg added a comment to D40961: Fix for automount -c inappropriately clearing important mount flags.

ok, fair. in that case i have no opinion about the posted patch and will defer to other people

Aug 11 2023, 8:22 PM
mjg added a comment to D40961: Fix for automount -c inappropriately clearing important mount flags.

but this is only trying to paper over part of the problem and flush_autofs still does not work?

Aug 11 2023, 7:16 PM
mjg added a comment to D40961: Fix for automount -c inappropriately clearing important mount flags.

So the fsid thing has a problem of being tied to NFS from security standpoint and is not even exported for unprivileged users.

Aug 11 2023, 6:09 PM
mjg added a comment to D41349: lib/libc/amd64/string: add baseline implementation of stpcpy.S.

there are weird whitespace issues, past that lgtm from asm standpoint

Aug 11 2023, 5:55 PM

Aug 10 2023

mjg added a comment to D40961: Fix for automount -c inappropriately clearing important mount flags.

The mount update path should grow support for FSID, which would close the problem.

Aug 10 2023, 9:53 PM

Aug 9 2023

mjg added a comment to D41337: vfs: Validate the vop vectors after the default vops applied.
In D41337#941279, @mjg wrote:

my bad, the entire point was for validation to happen prior any automagic assignment so filesystems are forced to explicitly state their position on fplookup for given vop vector

I disagree, it’s not an automagic, it is a long lived well known stable code, and, of course, the fix doesn't change the purpose you wanted

Aug 9 2023, 10:41 AM
mjg committed rGb8b33f3b3b71: vfs: retire NAMEI_DIAGNOSTIC (authored by mjg).
vfs: retire NAMEI_DIAGNOSTIC
Aug 9 2023, 10:38 AM
mjg added a comment to D41207: namei: Allow for runtime debug messages in name lookup.

So I went ahead and whacked this, see https://cgit.FreeBSD.org/src/commit/?id=b8b33f3b3b71ad7b4b5714afec21d6e8ad7fd6ce

Aug 9 2023, 10:38 AM
mjg added a comment to D41207: namei: Allow for runtime debug messages in name lookup.
In D41207#938522, @kib wrote:
In D41207#938511, @mjg wrote:

is this really of practical usage today? i was considering removing these printfs to begin with

I agree, better to remove it.

I'm fine with removing it. We had someone use it recently and I did the change to make it easier to set.
Although I'm not sure how much use it would be, since I would expect it to be rather spammy.

But I think they were having a panic occurring in VFS code and, for some reason, they were not getting into the kernel debugger, even though it was supposed to be enabled. Therefore, they wanted to be able to tell what was being looked up. (Because of the panic, they could not use dtrace, as I would usually suggest.)

I can do the pruning, if you'd like and update this review to instead prune it out.

Aug 9 2023, 10:33 AM

Aug 7 2023

mjg updated subscribers of D41349: lib/libc/amd64/string: add baseline implementation of stpcpy.S.

i was fine with strlen.S as the file was mine. stpcpy.S is not, I don't have a single line of code there. You should probably ask @emaste how to handle this. I *suspect* some form of "portions of this file blah blah" would do it.

Aug 7 2023, 5:59 PM

Aug 6 2023

mjg resigned from D41334: Revert "vnode read(2)/write(2): acquire rangelock regardless of do_vn_io_fault()".

i'm not going to argue over this

Aug 6 2023, 11:20 PM