sheepdog: use non-blocking fd in coroutine context
commit0d6db300cd95339cec6b8ab2ef46bd7cdb040959
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Tue, 12 Mar 2013 07:05:42 +0000 (12 16:05 +0900)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:50 +0000 (15 16:07 +0100)
tree0f76c2bd24d6573b42d3308c15312202e9151d89
parent381b487d54ba18c73df9db8452028a330058c505
sheepdog: use non-blocking fd in coroutine context

Using a blocking socket in the coroutine context reduces the chance of
switching to other work.  This patch makes the sheepdog driver use a
non-blocking fd always.

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/sheepdog.c