-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/virtio-user: move eventfd open/close into init/uninit
Originally, eventfd is opened when initializing each vq; and gets closded in virtio_user_stop_device(). To make it possible to initialize intr_handle struct in init() in following patch, we put the open() of all eventfds into init(); and put the close() into uninit(). Suggested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
- Loading branch information
Jianfeng Tan
authored and
Yuanhan Liu
committed
Apr 1, 2017
1 parent
99998fe
commit e6e7ad8
Showing
1 changed file
with
54 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters