Page MenuHomeFreeBSD

DO NOT MERGE: This seems to fix https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253589
AbandonedPublic

Authored by arichardson on Feb 17 2021, 7:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 6:49 PM
Unknown Object (File)
Fri, Apr 19, 5:04 PM
Unknown Object (File)
Dec 20 2023, 6:11 AM
Unknown Object (File)
Dec 13 2023, 8:35 AM
Unknown Object (File)
Jun 23 2023, 11:46 PM
Unknown Object (File)
May 14 2023, 7:03 PM
Unknown Object (File)
May 3 2023, 10:24 PM
Unknown Object (File)
Apr 26 2023, 4:05 AM

Details

Reviewers
rrs
Group Reviewers
transport
Summary

I haven't seen the CSan warnings since applying this patch, before it would give me a warning anytime I read a file from smbfs.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37165
Build 34054: arc lint + arc unit

Event Timeline

rrs requested changes to this revision.Feb 18 2021, 3:58 PM
rrs added a subscriber: rrs.

This will cause a HUGE performance impact! sbspace() is called often and
twiddling the extra locks is not useful. You are just looking (reading) two
variables or even one variable in the sbused case. You do not need a lock for this!

This revision now requires changes to proceed.Feb 18 2021, 3:58 PM

As you can see from the title of this diff I do not intend to merge this. It is just a debugging patch to find potentially racy accesses.

update to latest WIP. This is purely for debugging, not intended to be merged (possibly with the exception of using atomic_load)