summaryrefslogtreecommitdiff |
diff options
author | Olaf Hering <ohering@suse.de> | 2013-07-19 16:39:26 +0200 |
---|---|---|
committer | Olaf Hering <ohering@suse.de> | 2013-07-19 16:39:31 +0200 |
commit | 68828f371a7d131d1f7aebd3c2055f7b6b96d943 (patch) | |
tree | 5d670cf750eecf17bb6335aea3285739e3f058f1 | |
parent | 49240cbe3545126653e9f701186f71a614c46f29 (diff) |
Drivers: hv: balloon: Do not post pressure status if interruptedrpm-3.10.1-3.5.g0cd5432--openSUSE-13.1-Milestone4rpm-3.10.1-3.5.g0cd5432
(bnc#829539).
suse-commit: 0cd5432073dfb37d5aabef9ceb75b06a5ee7daa1
-rw-r--r-- | drivers/hv/hv_balloon.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 61b7351df1d4..deb5c25305af 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -975,6 +975,14 @@ static void post_status(struct hv_dynmem_device *dm) dm->num_pages_ballooned + compute_balloon_floor(); + /* + * If our transaction ID is no longer current, just don't + * send the status. This can happen if we were interrupted + * after we picked our transaction ID. + */ + if (status.hdr.trans_id != atomic_read(&trans_id)) + return; + vmbus_sendpacket(dm->dev->channel, &status, sizeof(struct dm_status), (unsigned long)NULL, |