Page MenuHomeFreeBSD

Use falloc_noinstall + finstall.
ClosedPublic

Authored by jhb on Jan 8 2020, 12:27 AM.
Tags
None
Referenced Files
F115226058: D23078.id66510.diff
Mon, Apr 21, 2:55 PM
F115207734: D23078.id66471.diff
Mon, Apr 21, 10:52 AM
Unknown Object (File)
Fri, Apr 18, 8:04 AM
Unknown Object (File)
Fri, Apr 18, 7:44 AM
Unknown Object (File)
Fri, Apr 18, 5:14 AM
Unknown Object (File)
Fri, Apr 18, 4:55 AM
Unknown Object (File)
Fri, Apr 18, 2:17 AM
Unknown Object (File)
Fri, Apr 18, 12:27 AM
Subscribers

Details

Test Plan
  • cryptocheck still passes ok

Diff Detail

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

Event Timeline

I guess this race doesn't really matter as if you try to use the file before finit() you just get badfileops and finit() itself is "atomic"? If so, I could just leave this as-is unless this approach is preferred.

No objection, but I believe you're correct about finit() being "atomic." (I mean, it is atomic. But are the fops consumers?)

sys/opencrypto/cryptodev.c
1516 ↗(On Diff #66471)

Will the compiler complain about storing fd to a uint32_t lvalue? I guess that part has not changed, so no.

This revision is now accepted and ready to land.Jan 8 2020, 1:05 AM