]> git.baikalelectronics.ru Git - kernel.git/commit
hv: hv_fcopy: drop the obsolete message on transfer failure
authorDexuan Cui <decui@microsoft.com>
Wed, 14 Jan 2015 09:55:10 +0000 (01:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 17:17:58 +0000 (09:17 -0800)
commita4f4aaf1066da6aaa315f9ff34a49987c223aba2
treed9d5b81e2b05aeadc3eebda0dac8f20859e89097
parentd3f48f8d47287e65afc3cb781625cf385745525a
hv: hv_fcopy: drop the obsolete message on transfer failure

In the case the user-space daemon crashes, hangs or is killed, we
need to down the semaphore, otherwise, after the daemon starts next
time, the obsolete data in fcopy_transaction.message or
fcopy_transaction.fcopy_msg will be used immediately.

Cc: Jason Wang <jasowang@redhat.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_fcopy.c