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)
Nov 2 2024, 7:45 AM
Unknown Object (File)
Oct 30 2024, 6:11 PM
Unknown Object (File)
Oct 1 2024, 3:14 PM
Unknown Object (File)
Sep 30 2024, 11:35 PM
Unknown Object (File)
Sep 23 2024, 5:48 AM
Unknown Object (File)
Sep 22 2024, 9:10 PM
Unknown Object (File)
Sep 9 2024, 2:56 AM
Unknown Object (File)
Sep 8 2024, 8:05 AM
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.