Rick Macklem 7674d489fc Fix mountd so that it will not lose SIGHUPs that indicate "reload exports".
Without this patch, if a SIGHUP is handled while the process is executing
get_exportlist(), that SIGHUP is essentially ignored because the got_sighup
variable is reset to 0 after get_exportlist().
This results in the exports file(s) not being reloaded until another SIGHUP
signal is sent to mountd.
This patch fixes this by resetting got_sighup to zero before the
get_exportlist() call while SIGHUP is blocked.
It also defines a delay time of 250msec before doing another exports reload
if there are RPC request(s) to process. This prevents repeated exports reloads
from delaying handling of RPC requests significantly.

PR:		246597
Reported by:	patrykkotlowski@gmail.com
Tested by:	patrykkotlowski@gmail.com
Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D25127
2020-06-06 00:40:02 +00:00
..
2020-02-19 12:49:49 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2020-05-21 01:55:35 +00:00
2020-05-01 01:31:19 +00:00
2019-08-13 20:06:55 +00:00
2020-01-10 22:20:23 +00:00
2020-06-01 01:25:19 +00:00
2019-03-14 14:34:36 +00:00
2020-04-28 16:09:22 +00:00
2020-03-30 03:26:52 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2020-04-10 23:10:28 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2020-01-30 18:34:08 +00:00
2018-10-22 02:34:10 +00:00
2018-05-19 20:57:22 +00:00
2019-12-11 17:37:53 +00:00
2020-04-15 17:11:44 +00:00
2018-06-17 17:31:16 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2019-12-11 17:37:53 +00:00
2019-03-05 02:53:41 +00:00
2019-12-11 17:37:53 +00:00
2020-02-19 12:49:49 +00:00
2019-12-11 17:37:53 +00:00
2020-02-13 15:28:56 +00:00
2019-04-22 17:52:46 +00:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2020-02-10 17:16:41 +00:00
2020-03-31 16:47:15 +00:00
2019-11-21 01:24:49 +00:00
2020-04-06 23:16:05 +00:00
2020-03-09 20:46:43 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00