block/nfs: fix potential segfault on early callback
commita2c0fe2fd26e3e10753660019da9366f7b19c286
authorPeter Lieven <pl@kamp.de>
Tue, 10 Jun 2014 07:42:47 +0000 (10 09:42 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Jun 2014 09:23:19 +0000 (16 17:23 +0800)
treebff017734c531fe47ded4cc3a68bee632993a2d6
parentae60e8e3783a66463d0736f3a48da9a66fd5cbd3
block/nfs: fix potential segfault on early callback

it will happen in the future that the callback of a libnfs call
directly invokes the callback. In this case we end up in a segfault
because the NFSRPC is gone when we the BH is scheduled.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nfs.c