Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410019
| From | Bob Liu <bob.liu@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback |
| Date | 2016-05-31 11:10 +0200 |
| Message-ID | <rENQt-Jk-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Sometimes blkfont may receive twice blkback_changed() notification after
migration, then talk_to_blkback() will be called twice too and confused
xen-blkback.
Signed-off-by: Bob Liu <bob.liu@oracle.com>
---
drivers/block/xen-blkfront.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index ca13df8..01aa460 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -2485,7 +2485,8 @@ static void blkback_changed(struct xenbus_device *dev,
break;
case XenbusStateConnected:
- if (dev->state != XenbusStateInitialised) {
+ if ((dev->state != XenbusStateInitialised) &&
+ (dev->state != XenbusStateConnected)) {
if (talk_to_blkback(dev, info))
break;
}
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Bob Liu <bob.liu@oracle.com> - 2016-05-31 11:10 +0200
Re: [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-05-31 22:40 +0200
Re: [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Bob Liu <bob.liu@oracle.com> - 2016-06-01 07:50 +0200
Re: [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-06-02 16:40 +0200
Re: [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-06-07 17:30 +0200
Re: [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Bob Liu <bob.liu@oracle.com> - 2016-06-08 08:50 +0200
Re: [PATCH 1/2] xen-blkfront: don't call talk_to_blkback when already connected to blkback Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-06-08 16:50 +0200
csiph-web