Page MenuHomeFreeBSD
Feed Advanced Search

Today

kib added inline comments to D53029: Add kqueue(9) support to sound(4).
Sun, Oct 19, 3:17 AM
kib added a comment to D51254: vfs_cluster.c: Do not propagate VOP_BMAP errors to the caller.
In D51254#1215182, @kib wrote:

why the BMAP operation would take the blocksize as a parameter to begin with, is the block size not fixed by the client filesystem?

For instance, UFS has fragments, which already means that block size is varying.

Another case where varying block size would matter (in much more significant way than fragments) are extent-based fs. We do not have any right now, but would we have, the existing bmap interface fits.

Sun, Oct 19, 2:51 AM
kib added a comment to D51254: vfs_cluster.c: Do not propagate VOP_BMAP errors to the caller.

why the BMAP operation would take the blocksize as a parameter to begin with, is the block size not fixed by the client filesystem?

Sun, Oct 19, 1:29 AM
kib accepted D53193: Match style in 3613896.
Sun, Oct 19, 12:23 AM

Yesterday

kib committed rG36138969847b: knotes: kqueue: handle copy for trivial filters (authored by kib).
knotes: kqueue: handle copy for trivial filters
Sat, Oct 18, 5:15 AM
kib committed rGa4981ededef3: kqueue.2: document KQUEUE_CPONFORK (authored by kib).
kqueue.2: document KQUEUE_CPONFORK
Sat, Oct 18, 5:15 AM
kib committed rG7a72e88781ae: kqueue: handle copy for netmap filters (authored by kib).
kqueue: handle copy for netmap filters
Sat, Oct 18, 5:15 AM
kib committed rG6b71c4ff698e: kqueue: handle copy for vnode filters (authored by kib).
kqueue: handle copy for vnode filters
Sat, Oct 18, 5:15 AM
kib committed rGc0e70e7b97dc: kern_event.c: support copy for timer events (authored by kib).
kern_event.c: support copy for timer events
Sat, Oct 18, 5:15 AM
kib committed rGb11289f87123: kqueuex(2): add KQUEUE_CPONFORK (authored by kib).
kqueuex(2): add KQUEUE_CPONFORK
Sat, Oct 18, 5:15 AM
kib committed rG25cecc4ba284: kern/kern_event.c: extract kqueue_acquire_ref() from kqueue_acquire() (authored by kib).
kern/kern_event.c: extract kqueue_acquire_ref() from kqueue_acquire()
Sat, Oct 18, 5:15 AM
kib committed rG78382caa3edb: kern/kern_event.c: extract kern_kqueue_alloc() from kern_kqueue() (authored by kib).
kern/kern_event.c: extract kern_kqueue_alloc() from kern_kqueue()
Sat, Oct 18, 5:15 AM
kib committed rG37ce6052f6ac: kern_descrip.c: add struct proc argument to fdcopy() (authored by kib).
kern_descrip.c: add struct proc argument to fdcopy()
Sat, Oct 18, 5:14 AM
kib committed rG47ed42f3f44c: kqueue_fo_release(): print filter with underflow (authored by kib).
kqueue_fo_release(): print filter with underflow
Sat, Oct 18, 5:14 AM
kib committed rG1265516c5c61: struct file: add DFLAG_FORK, indicate copying on fork (authored by kib).
struct file: add DFLAG_FORK, indicate copying on fork
Sat, Oct 18, 5:14 AM
kib closed D52045: Copy kqueues into the child on fork.
Sat, Oct 18, 5:14 AM
kib added inline comments to D53029: Add kqueue(9) support to sound(4).
Sat, Oct 18, 1:18 AM

Fri, Oct 17

kib accepted D53173: imgact: Mark brandinfo and note structures as const.
Fri, Oct 17, 11:10 PM
kib added inline comments to D53173: imgact: Mark brandinfo and note structures as const.
Fri, Oct 17, 10:54 PM
kib committed rG3c052bec12fc: include/stdckdint.h: make the header compatible with C++ (authored by kib).
include/stdckdint.h: make the header compatible with C++
Fri, Oct 17, 10:41 PM
kib closed D53149: include/stdckdint.h: make the header compatible with C++.
Fri, Oct 17, 10:41 PM
kib added inline comments to D53160: kthread: Add a wrapper macro KPROC_START.
Fri, Oct 17, 10:40 PM
kib added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Fri, Oct 17, 10:25 PM
kib added a comment to D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing.
In D53091#1213605, @kib wrote:

Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.

In other words, if the 'options RSS' is not included into the kernel config, would the driver even compile?

Sorry, I wish I was better at reviews of patch series. This is one of many patches, starting with https://reviews.freebsd.org/D53089 and ending with https://reviews.freebsd.org/D53104
The goal is to achieve consistent hashing for TCP ingress/egress by exposing the hashing parts of RSS to drivers, so that all NICs use the same hash key and algo.

Fri, Oct 17, 7:19 AM
kib added inline comments to D51623: amd64: Add kexec support.
Fri, Oct 17, 7:08 AM
kib added a comment to D53029: Add kqueue(9) support to sound(4).

There are a lot of unresolved reviewer's notes. Do you really need more reviewers, at least until all existing suggestions are handled?

Fri, Oct 17, 6:56 AM
kib updated the diff for D53149: include/stdckdint.h: make the header compatible with C++.
Fri, Oct 17, 4:12 AM
kib requested review of D53149: include/stdckdint.h: make the header compatible with C++.
Fri, Oct 17, 3:53 AM
kib updated the diff for D52045: Copy kqueues into the child on fork.

knote_triv_copy

Fri, Oct 17, 12:10 AM
kib added inline comments to D52045: Copy kqueues into the child on fork.
Fri, Oct 17, 12:09 AM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

Set quantum to 1.
Allow M_NOWAIT
List flags for vmem_xalloc() in man page.
Mention thread-safety in man page.
Remove unused VMEM_TRYLOCK()

Fri, Oct 17, 12:02 AM
kib added a comment to D27220: libuvmem: usermode port of vmem(9).

One minor thing I've noticed is that we don't export M_NOWAIT.
I think it would be very useful to have a way of controlling whether we wait or exit on failure, but I'm not sure if accomplishing that is as straightforward as defining M_NOWAIT in sys/vmem.h.

Fri, Oct 17, 12:01 AM

Thu, Oct 16

kib committed rGb4fe667b2fdd: nullfs: add nounixbypass mount option (authored by kib).
nullfs: add nounixbypass mount option
Thu, Oct 16, 2:23 AM
kib committed rG24f4ec797e9b: mount_nullfs.8: document unixbypass and nounixbypass (authored by kib).
mount_nullfs.8: document unixbypass and nounixbypass
Thu, Oct 16, 2:23 AM
kib committed rGe9a48e988e2d: nullfs_mount: use symbols instead of string literals for cache mount options (authored by kib).
nullfs_mount: use symbols instead of string literals for cache mount options
Thu, Oct 16, 2:23 AM
kib committed rG5a0a2d269f37: nullfs: add a helper for testing if vnode belongs to a nullfs mount (authored by kib).
nullfs: add a helper for testing if vnode belongs to a nullfs mount
Thu, Oct 16, 2:23 AM

Wed, Oct 15

kib updated the diff for D52045: Copy kqueues into the child on fork.

Merge two if's.

Wed, Oct 15, 11:55 PM
kib added a comment to D53091: mlx5: use newly exposed RSS hash key API rather than ad-hoc hashing.

Sorry, I do not understand the change.
The compilation of both in_rss.c and rss_config.c is gated by the RSS option, and this seems to not change for the whole time these files existed.

Wed, Oct 15, 11:03 PM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Man page update: explain that knotes for closed fds are not copied.

Wed, Oct 15, 10:43 PM
kib added a comment to D52045: Copy kqueues into the child on fork.

This should really have some regression tests. Even some simple ones which exercise the f_copy routine for various filters, and verify that knotes for O_CLOFORK fds are handled properly, would be much better than nothing.

Wed, Oct 15, 10:42 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

libuvmem(3)

Wed, Oct 15, 10:14 PM
kib added a comment to D27220: libuvmem: usermode port of vmem(9).
In D27220#1213306, @kib wrote:

Looks ok to me. Perhaps this should be a private library instead?

IMO it is generally useful API. Also, I do provide symbol versioning, which does not make sense for a private library: the intent is to keep stable interfaces.

Well, now the kernel's internal interface must be kept stable as well. I don't object, but I'm worried it'll be easy for someone modifying vmem to forget about this.

Wed, Oct 15, 10:13 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

Makefile formatting

Wed, Oct 15, 1:46 PM
kib added a comment to D27220: libuvmem: usermode port of vmem(9).

Looks ok to me. Perhaps this should be a private library instead?

Wed, Oct 15, 1:45 PM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Some editing to the comment.

Wed, Oct 15, 4:03 AM
kib accepted D53107: unionfs: avoid vdrop()ing a locked but doomed vnode.

FYI D52608 and D52628

Wed, Oct 15, 3:22 AM
kib added a comment to D52628: vfs: fix races between vdrop and VOP_UNLOCK.

So where are we WRT this change? If this not going to be finished soon, may be Mark' change should go in to be cherry-picked for 15.0.

Wed, Oct 15, 3:12 AM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Wrap the first stage of the fork pass into the original pass over source fd table.

Wed, Oct 15, 3:02 AM

Tue, Oct 14

kib added a comment to D27220: libuvmem: usermode port of vmem(9).
In D27220#1212532, @kib wrote:

Hi, is there a concrete reason why this revision never landed or has it just slipped through the cracks?

I would really like to use libuvmem for one of my ongoing bhyve projects and would like to see this land, let me know if there a way I could help with that.

The intent of the libuvmem port was to use vmem allocator for bhyve to handle physical address space. That stalled, and I do not see a reason to add unused library to base.

Is there a revision with the stalled patches somewhere? I'd be interested in taking a look.

Tue, Oct 14, 6:07 PM
kib accepted D53063: imgact_elf: Check note body sizes.
Tue, Oct 14, 6:05 PM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Changes due to the latest comments.

Tue, Oct 14, 6:03 PM
kib added inline comments to D52045: Copy kqueues into the child on fork.
Tue, Oct 14, 6:01 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

VMEM_LIST_LOCK()

Tue, Oct 14, 5:22 PM

Mon, Oct 13

kib added inline comments to D27220: libuvmem: usermode port of vmem(9).
Mon, Oct 13, 8:29 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

Use standard way to reference libc src dir.
Silence compiler warning in _bt_fill() about flags.

Mon, Oct 13, 8:27 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

Remove undefined symbols from the version script. The library should be buildable, at least.

Mon, Oct 13, 6:31 PM
kib updated the diff for D27220: libuvmem: usermode port of vmem(9).

Rebase. Use FreeBSD 16.0 symbol version for the new lib.

Mon, Oct 13, 6:20 PM
kib added a comment to D27220: libuvmem: usermode port of vmem(9).

Hi, is there a concrete reason why this revision never landed or has it just slipped through the cracks?

I would really like to use libuvmem for one of my ongoing bhyve projects and would like to see this land, let me know if there a way I could help with that.

Mon, Oct 13, 6:19 PM
kib added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 4:36 PM
kib added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 4:17 PM
kib accepted D53065: exec: Check for errors when mapping the shared object.
Mon, Oct 13, 4:11 PM
kib added inline comments to D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 4:09 PM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Man page editing

Mon, Oct 13, 4:07 PM
kib added inline comments to D52045: Copy kqueues into the child on fork.
Mon, Oct 13, 4:06 PM
kib accepted D53063: imgact_elf: Check note body sizes.
Mon, Oct 13, 3:49 PM
kib accepted D53062: imgact: Mark brandinfo and note structures as const.
Mon, Oct 13, 2:50 PM
kib committed rG0c7c1c27ea9e: vm_fault_busy_sleep(): update comment after addition of allocflags arg (authored by kib).
vm_fault_busy_sleep(): update comment after addition of allocflags arg
Mon, Oct 13, 12:33 AM
kib committed rGd1cdb4a087e6: vm_fault: assert that first_m is xbusy (authored by kib).
vm_fault: assert that first_m is xbusy
Mon, Oct 13, 12:32 AM
kib committed rG94ea60483bcc: vm_fault: try to only share-busy page for soft faults (authored by kib).
vm_fault: try to only share-busy page for soft faults
Mon, Oct 13, 12:32 AM
kib committed rGf4d5c6d65168: vm_fault: add helper vm_fault_can_cow_rename() (authored by kib).
vm_fault: add helper vm_fault_can_cow_rename()
Mon, Oct 13, 12:32 AM
kib committed rGe7422f7dfd0e: vm_fault: add vm_fault_might_be_cow() helper (authored by kib).
vm_fault: add vm_fault_might_be_cow() helper
Mon, Oct 13, 12:32 AM
kib committed rG3126c57163fb: vm_fault: drop never-true busy_sleep test (authored by dougm).
vm_fault: drop never-true busy_sleep test
Mon, Oct 13, 12:32 AM
kib committed rG4b938ed09069: vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep() (authored by kib).
vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep()
Mon, Oct 13, 12:32 AM
kib committed rG5f4168fa9f29: vm/vm_fault.c: cleanup includes (authored by kib).
vm/vm_fault.c: cleanup includes
Mon, Oct 13, 12:31 AM
kib committed rG84b512720455: pdgetpid(2): switch back returning EBADF for non-procdesc fd (authored by kib).
pdgetpid(2): switch back returning EBADF for non-procdesc fd
Mon, Oct 13, 12:31 AM
kib committed rG3bd1780213bf: kern: replace several EBADF with EINVAL (authored by kib).
kern: replace several EBADF with EINVAL
Mon, Oct 13, 12:31 AM
kib committed rGf0f57fde342d: kern_exit.c: do not leak reaper bitmap busy bits (authored by kib).
kern_exit.c: do not leak reaper bitmap busy bits
Mon, Oct 13, 12:30 AM

Sun, Oct 12

kib added a comment to D53047: rb tree: change INSERT_COLOR to avoid always-true test.

Single instruction to clear a register is basically free on modern architectures. All it does it marks the register as having zero (sometimes not writing actual zero) and eliminating dependencies on previous register value. On the other hand, adding more code means that we consume more space in the icache, there are more instructions to parse etc.

Sun, Oct 12, 5:59 PM

Sat, Oct 11

kib added a comment to D53026: realpath: Avoid doing unnecessary work.
In D53026#1211786, @des wrote:

@mjg @kib do you agree that there is no reason why the userland implementation of realpath() would succeed after the syscall failed, except in the case of a race?

Sat, Oct 11, 7:23 PM
kib added a comment to D52045: Copy kqueues into the child on fork.

I intend to commit this early next week.

Sat, Oct 11, 6:39 PM
kib updated the diff for D52045: Copy kqueues into the child on fork.

Bug fixes after Peter' testing.

Sat, Oct 11, 6:38 PM
kib committed rG6eb4708a84d7: kern_exit.c: do not leak reaper bitmap busy bits (authored by kib).
kern_exit.c: do not leak reaper bitmap busy bits
Sat, Oct 11, 5:10 AM
kib committed rG6506630a28bc: vm_fault_busy_sleep(): update comment after addition of allocflags arg (authored by kib).
vm_fault_busy_sleep(): update comment after addition of allocflags arg
Sat, Oct 11, 5:10 AM
kib committed rG27d5df7c26c2: vm_fault: assert that first_m is xbusy (authored by kib).
vm_fault: assert that first_m is xbusy
Sat, Oct 11, 5:10 AM
kib committed rG650a9a12c061: vm_fault: try to only share-busy page for soft faults (authored by kib).
vm_fault: try to only share-busy page for soft faults
Sat, Oct 11, 5:10 AM
kib committed rGc8e9bad25a43: vm_fault: add helper vm_fault_can_cow_rename() (authored by kib).
vm_fault: add helper vm_fault_can_cow_rename()
Sat, Oct 11, 5:10 AM
kib committed rG0188344fc3ec: vm_fault: add vm_fault_might_be_cow() helper (authored by kib).
vm_fault: add vm_fault_might_be_cow() helper
Sat, Oct 11, 5:10 AM
kib committed rG6bffdfe05b77: vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep() (authored by kib).
vm_fault_busy_sleep(): pass explicit allocflags for vm_page_busy_sleep()
Sat, Oct 11, 5:09 AM
kib committed rG40c8d6877269: vm/vm_fault.c: cleanup includes (authored by kib).
vm/vm_fault.c: cleanup includes
Sat, Oct 11, 5:09 AM
kib committed rG07debe52b30a: pdgetpid(2): switch back returning EBADF for non-procdesc fd (authored by kib).
pdgetpid(2): switch back returning EBADF for non-procdesc fd
Sat, Oct 11, 5:09 AM
kib committed rGac3444a9528e: kern: replace several EBADF with EINVAL (authored by kib).
kern: replace several EBADF with EINVAL
Sat, Oct 11, 5:09 AM

Fri, Oct 10

kib added a comment to D52940: rb tree: quiet gcc -Wmaybe-uninitialized.

You might hide the workaround under some sort of ifdef gcc. It would be tricky, though, since this needs to happen inside the macro.

Fri, Oct 10, 5:01 PM
kib added a comment to D53023: libm: remainder: make sure x is zero.

Ask kargl@ for explicit feedback and approval of the patch.

Fri, Oct 10, 4:58 PM

Thu, Oct 9

kib committed rG033587a985a4: mount_nullfs.8: document unixbypass and nounixbypass (authored by kib).
mount_nullfs.8: document unixbypass and nounixbypass
Thu, Oct 9, 11:03 PM
kib committed rG6fa205a6233f: nullfs: add nounixbypass mount option (authored by kib).
nullfs: add nounixbypass mount option
Thu, Oct 9, 11:03 PM
kib committed rG8e6f6a5fbde7: nullfs_mount: use symbols instead of string literals for cache mount options (authored by kib).
nullfs_mount: use symbols instead of string literals for cache mount options
Thu, Oct 9, 11:03 PM
kib committed rG419f2fe6b70b: nullfs: add a helper for testing if vnode belongs to a nullfs mount (authored by kib).
nullfs: add a helper for testing if vnode belongs to a nullfs mount
Thu, Oct 9, 11:03 PM
kib committed rG035f1971ade4: fs/nullfs/null.h: put first definition after headers include (authored by kib).
fs/nullfs/null.h: put first definition after headers include
Thu, Oct 9, 11:03 PM
kib closed D52983: nullfs: add nounixbypass mount option.
Thu, Oct 9, 11:02 PM
kib updated the diff for D52983: nullfs: add nounixbypass mount option.
Thu, Oct 9, 10:33 PM