mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
Drivers: hv: vmbus: Fix a rescind issue
The current rescind processing code will not correctly handle the case where the host immediately rescinds a channel that has been offerred. In this case, we could be blocked in the open call and since the channel is rescinded, the host will not respond and we could be blocked forever in the vmbus open call.i Fix this problem. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fb2c445277
commit
7fa32e5ec2
3 changed files with 13 additions and 5 deletions
|
@ -708,6 +708,7 @@ struct vmbus_channel {
|
|||
u8 monitor_bit;
|
||||
|
||||
bool rescind; /* got rescind msg */
|
||||
struct completion rescind_event;
|
||||
|
||||
u32 ringbuffer_gpadlhandle;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue