Page MenuHomeFreeBSD

Reduce mountd DNS queries
ClosedPublic

Authored by sef on Dec 4 2018, 10:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 22 2024, 9:10 PM
Unknown Object (File)
Mar 22 2024, 9:10 PM
Unknown Object (File)
Mar 22 2024, 9:10 PM
Unknown Object (File)
Mar 22 2024, 8:53 PM
Unknown Object (File)
Mar 9 2024, 11:58 AM
Unknown Object (File)
Jan 8 2024, 8:36 PM
Unknown Object (File)
Jan 7 2024, 5:21 AM
Unknown Object (File)
Jan 4 2024, 8:37 PM
Subscribers

Details

Summary

Right now, mountd does a getnameinfo call for every request, even ones where it doesn't use them. A FreeNAS user noticed this was resulting in large delays (due to a resolv.conf error); in looking at the code, there's no reason for it to call getnameinfo in most cases.

Test Plan

Export files via NFS, and ensure mounting on client works.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision is now accepted and ready to land.Dec 4 2018, 10:21 PM

Generally looks good to me, except one cosmetic issue -- the line seems to go beyond 80 columns, so it would be nice to re-wrap it earlier.

Fix the larger-than-80-columns I got from using the wrong window for my editing.

This revision now requires review to proceed.Dec 6 2018, 2:37 AM
In D18430#392768, @mav wrote:

Generally looks good to me, except one cosmetic issue -- the line seems to go beyond 80 columns, so it would be nice to re-wrap it earlier.

Fixed!

This revision is now accepted and ready to land.Dec 6 2018, 5:03 AM
This revision was automatically updated to reflect the committed changes.