On 07/19/10 03:21 PM, J. Bruce Fields wrote:
Does anyone know what __write_ports_delfd() is meant to do? The block comment above write_ports claims it handles writes of the form "-<file descriptor>", which makes no sense (the file table of the writer has nothing to do with anything). It's called only when the character after the "-" is a digit, but the names it matches against (generated by svc_one_sock_name()) start with "ipv4" or "ipv6".
I suspect the comment above write_ports() is not correct. I assumed that delfd was symmetrical with addfd, but it isn't. More likely, addfd returns a string name that can be passed to write_ports (with a preceding '-') to terminate the socket.
-- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html