Page MenuHomeFreeBSD

Eliminate the unused arena parameter from kmem_alloc_attr()
ClosedPublic

Authored by alc on Aug 18 2018, 7:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 20 2024, 4:11 AM
Unknown Object (File)
Feb 3 2024, 3:05 AM
Unknown Object (File)
Dec 20 2023, 1:00 AM
Unknown Object (File)
Nov 10 2023, 8:31 AM
Unknown Object (File)
Oct 9 2023, 7:27 AM
Unknown Object (File)
Sep 24 2023, 5:12 PM
Unknown Object (File)
Aug 13 2023, 6:15 AM
Unknown Object (File)
Aug 2 2023, 6:08 PM
Subscribers

Details

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc added reviewers: jeff, kib, markj.

This should probably include an increment to __FreeBSD_version.

I'm happy to either add kmem_malloc() and kmem_alloc_contig() to this patch or do them separately.

kmem_malloc() needs sys_machdep.c update. I think it is better to keep them in separate changes.

This revision is now accepted and ready to land.Aug 18 2018, 7:57 PM
markj added inline comments.
dev/drm2/drm_scatter.c
40 ↗(On Diff #46902)

Fix style while here?

In D16793#357198, @kib wrote:

kmem_malloc() needs sys_machdep.c update. I think it is better to keep them in separate changes.

Okay. I'm happy with that.

Should I bump __FreeBSD_version?

In D16793#357203, @alc wrote:

Should I bump __FreeBSD_version?

I would not.

dev/drm2/drm_scatter.c
40 ↗(On Diff #46902)

This is almost contrib code. Also it is almost dead.

In D16793#357204, @kib wrote:
In D16793#357203, @alc wrote:

Should I bump __FreeBSD_version?

I would not.

Could you please elaborate? This is going to impact out-of-tree drivers, e.g., Virtual Box and the newer drm, right? Are you suggesting that I never bump __FreeBSD_version, or wait until all of the kmem functions are "fixed"?

In D16793#357232, @alc wrote:
In D16793#357204, @kib wrote:
In D16793#357203, @alc wrote:

Should I bump __FreeBSD_version?

I would not.

Could you please elaborate? This is going to impact out-of-tree drivers, e.g., Virtual Box and the newer drm, right? Are you suggesting that I never bump __FreeBSD_version, or wait until all of the kmem functions are "fixed"?

My personal opinion that drivers for HEAD should follow the KPI of the tip of the HEAD and not introduce ifdefs. Practically, trying to present the KPI and KBI history as the monotonic single __FreeBSD_version value does not work anyway.

This revision was automatically updated to reflect the committed changes.