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)
commitd9b1652947c695d247b5e4603a16213ec55661ed
treed9d5b81e2b05aeadc3eebda0dac8f20859e89097
parentd61031ee8df6214d58371a1cc36a0591e242fba0
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