Proposed Patch: write_data_iov_timeout, etc.
Trever L. Adams
trever at middleearth.sapphiresunday.org
Wed Oct 12 17:15:20 UTC 2016
Volker raised the possibility that this should check the time after each
iteration. This isn't entirely beneficial (but not harmful) to the use
for which it will be in Samba VirusFilter.
The only problems with doing this are:
1) a dependency in sys_rw_data.c on lib/util/time.c
2) extra transitions into/out of the kernel for checking the elapsed time
The flow in this use case should proceed reasonably as long as their is
progress within the timeout period, not a completion of events.
I am happy to rework this if other use cases are likely which such
overhead is outweighed by benefit or it is just very strongly desired.
I appreciate the review.
Trever
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timeout.patch
Type: text/x-patch
Size: 3439 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20161012/a28cd983/timeout.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20161012/a28cd983/signature.sig>
More information about the samba-technical
mailing list