Closed maxujun closed 3 months ago
(1/2) Host_RHEL.m8.u10.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.ppc64le.io-github-autotest-qemu.nic_hotplug.one_pci.nic_virtio: STARTED (1/2) Host_RHEL.m8.u10.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.ppc64le.io-github-autotest-qemu.nic_hotplug.one_pci.nic_virtio: PASS (412.37 s) (2/2) Host_RHEL.m8.u10.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.ppc64le.io-github-autotest-qemu.nic_hotplug.migration.after_nichotunplug.nic_virtio: STARTED (2/2) Host_RHEL.m8.u10.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.ppc64le.io-github-autotest-qemu.nic_hotplug.migration.after_nichotunplug.nic_virtio: PASS (184.67 s)
@PaulYuuu Could you help review?
@yanglei-rh @YongxueHong, can you help to review as well?
Hi @maxujun Theoretically, fd should be closed after used. So if there is not close original nic fd, will it cause too many fds to be occupied and unable to be released? Since there is a case scenario is repeat hotplug 100 times, and sometime QE will test it with multi queues.
Hi @maxujun Would you like to give more details about this PR? Please add them to the commit message, thanks.
Hi @maxujun Theoretically, fd should be closed after used. So if there is not close original nic fd, will it cause too many fds to be occupied and unable to be released? Since there is a case scenario is repeat hotplug 100 times, and sometime QE will test it with multi queues.
Original nic's fds have been closed without getfd after creating. Needn't closefd when hotunplugging.
Hi @maxujun Theoretically, fd should be closed after used. So if there is not close original nic fd, will it cause too many fds to be occupied and unable to be released? Since there is a case scenario is repeat hotplug 100 times, and sometime QE will test it with multi queues.
Original nic's fds have been closed without getfd after creating. Needn't closefd when hotunplugging.
Got it, so it LGTM.
Request change according to above comment.
Updated
@YongxueHong What do you think of the current solution?
Hi @luckyh I would like to hear your thoughts. Thanks in advance.
ID:2396