From: Greg KH <gregkh@linuxfoundation.org>
To: Juergen Gross <jgross@suse.com>
Cc: stable@vger.kernel.org, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [Patch-for-4.4] xen/blkback: don't use xen_blkif_get() in xen-blkback kthread
Date: Fri, 4 Aug 2017 12:57:22 -0700 [thread overview]
Message-ID: <20170804195722.GF3477@kroah.com> (raw)
In-Reply-To: <20170802092745.18907-2-jgross@suse.com>
On Wed, Aug 02, 2017 at 11:27:45AM +0200, Juergen Gross wrote:
> There is no need to use xen_blkif_get()/xen_blkif_put() in the kthread
> of xen-blkback. Thread stopping is synchronous and using the blkif
> reference counting in the kthread will avoid to ever let the reference
> count drop to zero at the end of an I/O running concurrent to
> disconnecting.
>
> Setting ring->xenblkd to NULL after stopping the kthread isn't needed
> as the kthread does this already.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
> Tested-by: Steven Haigh <netwiz@crc.id.au>
> Acked-by: Roger Pau Monn� <roger.pau@citrix.com>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> ---
> This is a backport of commit a24fa22ce22ae302b3bf8f7008896d52d5d57b8d
> for linux-4.4.y branch.
Both patches now applied, thanks.
greg k-h
prev parent reply other threads:[~2017-08-04 19:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 9:27 [Patch-for-4.4] xen/blkback: don't free be structure too early Juergen Gross
2017-08-02 9:27 ` [Patch-for-4.4] xen/blkback: don't use xen_blkif_get() in xen-blkback kthread Juergen Gross
2017-08-04 19:57 ` Greg KH [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=20170804195722.GF3477@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=jgross@suse.com \
--cc=konrad.wilk@oracle.com \
--cc=stable@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).