Loading
vfio-user: close fds received from GET_REGION_INFO
These file descriptors are transferred via SCM_RIGHTS and need to be closed to avoid leaking them. Since Linux's mmap(2) man page states that it's safe to close descriptors right after the mmap(2) call: After the mmap() call has returned, the file descriptor, fd, can be closed immediately without invalidating the mapping. we do that immediately, as they're no longer needed. Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I42d0e0c68ef628ef23e315e2295b903e1368b4c0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21013 Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>