search for: ae2273196b0c

Displaying 3 results from an estimated 3 matches for "ae2273196b0c".

2023 May 05
0
[PATCH] vhost_net: Use fdget() and fdput()
...). What's the advantages of this? Thanks > > Signed-off-by: Ye Xingchen <ye.xingchen at zte.com.cn> > --- > drivers/vhost/net.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index ae2273196b0c..5b3fe4805182 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -1466,17 +1466,17 @@ static struct ptr_ring *get_tap_ptr_ring(struct file *file) > > static struct socket *get_tap_socket(int fd) > { > - struct file *file = fget(fd); > + struct...
2023 May 05
0
[PATCH] vhost_net: Use fdget() and fdput()
...gt; Signed-off-by: Ye Xingchen <ye.xingchen at zte.com.cn> > >> --- > >> drivers/vhost/net.c | 10 +++++----- > >> 1 file changed, 5 insertions(+), 5 deletions(-) > >> > >> diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > >> index ae2273196b0c..5b3fe4805182 100644 > >> --- a/drivers/vhost/net.c > >> +++ b/drivers/vhost/net.c > >> @@ -1466,17 +1466,17 @@ static struct ptr_ring *get_tap_ptr_ring(struct file *file) > >> > >> static struct socket *get_tap_socket(int fd) > >> { > >...
2023 May 11
0
[PATCH] vhost_net: Use fdget() and fdput()
...rt the fget()/fput() uses to fdget()/fdput(). > > Signed-off-by: Ye Xingchen <ye.xingchen at zte.com.cn> > --- > drivers/vhost/net.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index ae2273196b0c..5b3fe4805182 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -1466,17 +1466,17 @@ static struct ptr_ring *get_tap_ptr_ring(struct file *file) > > static struct socket *get_tap_socket(int fd) > { > - struct file *file = fget(fd); > + struct fd f = fdge...