Page MenuHomeFreeBSD

mjg (Mateusz Guzik)
nice guy

Projects

User Details

User Since
Jun 4 2014, 10:38 AM (485 w, 4 d)

Recent Activity

Yesterday

mjg committed rGaaeaba324335: vfs: fix reference counting/locking on LK_UPGRADE error (authored by olce.freebsd_certner.fr).
vfs: fix reference counting/locking on LK_UPGRADE error
Sun, Sep 24, 9:48 PM
mjg committed rGba4d4882ce72: 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
Sun, Sep 24, 9:47 PM
mjg committed rG0e60950b4a44: vfs: stabilize freevnodes_old (authored by mjg).
vfs: stabilize freevnodes_old
Sun, Sep 24, 9:47 PM
mjg committed rGcd132f8578f2: vfs: s/u_long vstir/bool vstir/ (authored by mjg).
vfs: s/u_long vstir/bool vstir/
Sun, Sep 24, 9:47 PM
mjg committed rG5034749bd436: vfs: group vnode-related sysctls under vfs.vnode (authored by mjg).
vfs: group vnode-related sysctls under vfs.vnode
Sun, Sep 24, 9:47 PM
mjg committed rGa5e0eea4ca51: vfs: retire kern.minvnodes (authored by mjg).
vfs: retire kern.minvnodes
Sun, Sep 24, 9:47 PM
mjg committed rGf4f4f48e1293: vfs: retire vnlru_under_unlocked (authored by mjg).
vfs: retire vnlru_under_unlocked
Sun, Sep 24, 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
Sun, Sep 24, 9:47 PM
mjg committed rG6d5db9c5239b: vfs: fix stale comment about freevnodes management (authored by mjg).
vfs: fix stale comment about freevnodes management
Sun, Sep 24, 9:47 PM
mjg committed rGdc804471fa88: vfs cache: garbage collect the fullpathfail2 counter (authored by mjg).
vfs cache: garbage collect the fullpathfail2 counter
Sun, Sep 24, 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
Sun, Sep 24, 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
Sun, Sep 24, 9:47 PM
mjg committed rGefc027d99c76: ufs: restore name cache fast path lookup (authored by mjg).
ufs: restore name cache fast path lookup
Sun, Sep 24, 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
Sun, Sep 24, 9:47 PM
mjg committed rGfb4c1757a920: drm2: whack set-but-not-used warns (authored by mjg).
drm2: whack set-but-not-used warns
Sun, Sep 24, 9:47 PM
mjg committed rGc76dfb929e70: vfs: fix reference counting/locking on LK_UPGRADE error (authored by olce.freebsd_certner.fr).
vfs: fix reference counting/locking on LK_UPGRADE error
Sun, Sep 24, 10:45 AM

Sat, Sep 23

mjg added inline comments to D41936: libc: Add memory barriers to quick_exit() and at_quick_exit()..
Sat, Sep 23, 10:38 PM
mjg added inline comments to D41936: libc: Add memory barriers to quick_exit() and at_quick_exit()..
Sat, Sep 23, 12:31 PM
mjg committed rGbb124a0f611a: vfs cache: retire dothits and dotdothits counters (authored by mjg).
vfs cache: retire dothits and dotdothits counters
Sat, Sep 23, 12:12 AM

Fri, Sep 22

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
Fri, Sep 22, 9:52 PM
mjg committed rG873b6cd62043: vfs: stabilize freevnodes_old (authored by mjg).
vfs: stabilize freevnodes_old
Fri, Sep 22, 9:52 PM
mjg committed rG1a644e8b68be: vfs: s/u_long vstir/bool vstir/ (authored by mjg).
vfs: s/u_long vstir/bool vstir/
Fri, Sep 22, 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
Fri, Sep 22, 9:52 PM
mjg committed rGb93b1b939381: vfs: retire kern.minvnodes (authored by mjg).
vfs: retire kern.minvnodes
Fri, Sep 22, 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
Fri, Sep 22, 9:52 PM
mjg committed rGb5210f3fb260: vfs: retire vnlru_under_unlocked (authored by mjg).
vfs: retire vnlru_under_unlocked
Fri, Sep 22, 9:52 PM
mjg committed rG210dd7aa1f48: vfs: fix stale comment about freevnodes management (authored by mjg).
vfs: fix stale comment about freevnodes management
Fri, Sep 22, 9:52 PM
mjg committed rG25d8cf225ac2: ufs: restore name cache fast path lookup (authored by mjg).
ufs: restore name cache fast path lookup
Fri, Sep 22, 9:52 PM
mjg committed rG8e4a043bad75: vfs cache: garbage collect the fullpathfail2 counter (authored by mjg).
vfs cache: garbage collect the fullpathfail2 counter
Fri, Sep 22, 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
Fri, Sep 22, 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
Fri, Sep 22, 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
Fri, Sep 22, 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

Fri, Sep 22, 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
Fri, Sep 22, 9:34 PM
mjg committed rG02ef039c284b: vfs cache: Drop known argument of internal cache_recalc_neg_min() (authored by olce.freebsd_certner.fr).
vfs cache: Drop known argument of internal cache_recalc_neg_min()
Fri, Sep 22, 9:27 PM
mjg closed D41763: VFS cache: Drop known argument of internal cache_recalc_neg_min().
Fri, Sep 22, 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

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

Given the above I'm closing this.

Fri, Sep 22, 9:05 PM
mjg closed D41731: vfs_lookup_cross_mount(): Fix reference counting/locking on LK_UPGRADE error.
Fri, Sep 22, 9:00 PM
mjg committed rG02cbc029dac9: vfs: fix reference counting/locking on LK_UPGRADE error (authored by olce.freebsd_certner.fr).
vfs: fix reference counting/locking on LK_UPGRADE error
Fri, Sep 22, 9:00 PM
mjg added a comment to D41936: libc: Add memory barriers to quick_exit() and at_quick_exit()..

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)).

Fri, Sep 22, 4:37 PM

Wed, Sep 20

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?

Wed, Sep 20, 8:24 PM

Mon, Sep 18

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

Sat, Sep 16

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
Sat, Sep 16, 5:28 PM
mjg committed rGef89b78bb1f6: vfs: stabilize freevnodes_old (authored by mjg).
vfs: stabilize freevnodes_old
Sat, Sep 16, 3:55 PM
mjg committed rG49874af3eca6: zfs: retire z_nr_znodes (authored by mjg).
zfs: retire z_nr_znodes
Sat, Sep 16, 2:21 PM
mjg committed rG509d843a982b: vfs: s/u_long vstir/bool vstir/ (authored by mjg).
vfs: s/u_long vstir/bool vstir/
Sat, Sep 16, 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
Sat, Sep 16, 7:41 AM
mjg committed rG2a689cadf092: vfs: retire kern.minvnodes (authored by mjg).
vfs: retire kern.minvnodes
Sat, Sep 16, 7:41 AM

Fri, Sep 15

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

Thu, Sep 14

mjg committed rGba5dc166e0f3: vfs: retire vnlru_under_unlocked (authored by mjg).
vfs: retire vnlru_under_unlocked
Thu, Sep 14, 11:07 PM
mjg committed rG07f52c4b5a4f: vfs cache: garbage collect the fullpathfail2 counter (authored by mjg).
vfs cache: garbage collect the fullpathfail2 counter
Thu, Sep 14, 8:37 PM
mjg committed rG9dc0c983b093: vfs: fix stale comment about freevnodes management (authored by mjg).
vfs: fix stale comment about freevnodes management
Thu, Sep 14, 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
Thu, Sep 14, 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
Thu, Sep 14, 3:10 PM

Tue, Sep 12

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?

Tue, Sep 12, 11:03 AM

Mon, Sep 11

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

Mon, Sep 11, 6:34 PM

Sat, Sep 9

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

Fri, Sep 8

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.

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

Sat, Sep 2

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
Sat, Sep 2, 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
Sat, Sep 2, 10:25 AM

Fri, Sep 1

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
Fri, Sep 1, 6:18 PM

Thu, Aug 31

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

same comment as for snmp

Thu, Aug 31, 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

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

Sun, Aug 27

mjg committed rGedfae4b4d2b5: vfs: retried++ -> retried = true for the boolean (authored by mjg).
vfs: retried++ -> retried = true for the boolean
Sun, Aug 27, 10:46 PM
mjg committed rGb18ab4f29540: vfs: trylock vnode requeue (authored by mjg).
vfs: trylock vnode requeue
Sun, Aug 27, 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
Sun, Aug 27, 10:46 PM
mjg accepted D30056: pf: Remove DIOCCLRSTATES and DIOCKILLSTATES.

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

Sun, Aug 27, 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