From: Jason Wang <jasowang@redhat.com>
To: Tonghao Zhang <xiangxia.m.yue@gmail.com>,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH] vhost: Remove the unused variable.
Date: Tue, 9 Jan 2018 11:02:19 +0800 [thread overview]
Message-ID: <b26a2b6e-9fbb-7f12-0ea3-91c105f80b15@redhat.com> (raw)
In-Reply-To: <1515462393-13354-1-git-send-email-xiangxia.m.yue@gmail.com>
On 2018年01月09日 09:46, Tonghao Zhang wrote:
> The patch (7235acdb1) changed the way of the work
> flushing in which the queued seq, done seq, and the
> flushing are not used anymore. Then remove them now.
>
> Fixes: 7235acdb1 ("vhost: simplify work flushing")
> Cc: Jason Wang <jasowang@redhat.com>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
> ---
> drivers/vhost/vhost.c | 1 -
> drivers/vhost/vhost.h | 4 ----
> 2 files changed, 5 deletions(-)
>
> diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
> index 33ac2b186b85..9b04cad91d65 100644
> --- a/drivers/vhost/vhost.c
> +++ b/drivers/vhost/vhost.c
> @@ -181,7 +181,6 @@ void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn)
> {
> clear_bit(VHOST_WORK_QUEUED, &work->flags);
> work->fn = fn;
> - init_waitqueue_head(&work->done);
> }
> EXPORT_SYMBOL_GPL(vhost_work_init);
>
> diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
> index 79c6e7a60a5e..749fe13e061c 100644
> --- a/drivers/vhost/vhost.h
> +++ b/drivers/vhost/vhost.h
> @@ -20,10 +20,6 @@ typedef void (*vhost_work_fn_t)(struct vhost_work *work);
> struct vhost_work {
> struct llist_node node;
> vhost_work_fn_t fn;
> - wait_queue_head_t done;
> - int flushing;
> - unsigned queue_seq;
> - unsigned done_seq;
> unsigned long flags;
> };
>
Thanks for the patch, but please use get_maintainer.pl to cc correct
list and maintainers.
You can add my Acked-by when reposting.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
prev parent reply other threads:[~2018-01-09 3:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 1:46 [PATCH] vhost: Remove the unused variable Tonghao Zhang
2018-01-09 3:02 ` Jason Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b26a2b6e-9fbb-7f12-0ea3-91c105f80b15@redhat.com \
--to=jasowang@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=xiangxia.m.yue@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox