Page MenuHomeFreeBSD

Reduce bqlock contention in binsfree
ClosedPublic

Authored by cse_cem_gmail_com on Jun 22 2015, 4:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 10:38 PM
Unknown Object (File)
Sat, Dec 21, 3:22 AM
Unknown Object (File)
Sat, Dec 21, 2:47 AM
Unknown Object (File)
Sat, Dec 21, 12:10 AM
Unknown Object (File)
Oct 25 2024, 7:44 AM
Unknown Object (File)
Oct 21 2024, 12:12 AM
Unknown Object (File)
Oct 3 2024, 10:07 PM
Unknown Object (File)
Oct 2 2024, 10:18 PM
Subscribers

Details

Reviewers
kib
cem
Summary

Only take 'olock' when needed for REMFREE.

Sponsored by: EMC / Isilon Storage Division

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

cse_cem_gmail_com retitled this revision from to Reduce bqlock contention in binsfree.
cse_cem_gmail_com updated this object.
cse_cem_gmail_com edited the test plan for this revision. (Show Details)
cse_cem_gmail_com added a reviewer: kib.
cse_cem_gmail_com added subscribers: benno, bdrewery.

This looks fine.

sys/kern/vfs_bio.c
997

It seems you do not need to evaluate olock if B_REMFREE flag is not set.

1000

Move olock calculation there.

Will fix.

sys/kern/vfs_bio.c
997

Sure. But it isn't expensive either:

bqlock(int qindex)
{

        if (qindex == QUEUE_DIRTY)
                return (struct mtx *)(&bqdirty);
        return (struct mtx *)(&bqclean);
}
1000

Ok.

cse_cem_gmail_com edited edge metadata.

Move olock calculation to only where it is needed.

cem added a reviewer: cem.
This revision is now accepted and ready to land.Jul 9 2015, 10:11 PM