It is not safe since when you call nfs_lstat64_async() as it will
modify the nfs_context linked list of pointers for the queue of
outgoing PDUs.
That same list is also read and modified in nfs_service() when it
writes a queued PDU to the wire.
You need to wrap these calls inside a mutex. That should not harm
performance much/any-at-all in modern linux which uses futex-es as the
mutex primitive.
As nfs_lstat64_async is guaranteed to be non-blocking and thus will
return almost instantly, there will not be much/any-at-all impact of
the serialization that this futex would incur.
> --
> You received this message because you are subscribed to the Google Groups
> "libnfs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
libnfs+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.