Re: [Qemu-devel] [PATCH] rbd: switch from pipe to QEMUBH completion notification

2014-01-01 Thread Stefan Hajnoczi
On Thu, Dec 05, 2013 at 04:38:33PM +0100, Stefan Hajnoczi wrote: > rbd callbacks are called from non-QEMU threads. Up until now a pipe was > used to signal completion back to the QEMU iothread. > > The pipe writer code handles EAGAIN using select(2). The select(2) API > is not scalable since fd_

Re: [Qemu-devel] [PATCH] rbd: switch from pipe to QEMUBH completion notification

2013-12-27 Thread Josh Durgin
On 12/05/2013 07:38 AM, Stefan Hajnoczi wrote: rbd callbacks are called from non-QEMU threads. Up until now a pipe was used to signal completion back to the QEMU iothread. The pipe writer code handles EAGAIN using select(2). The select(2) API is not scalable since fd_set size is static. FD_SE

[Qemu-devel] [PATCH] rbd: switch from pipe to QEMUBH completion notification

2013-12-05 Thread Stefan Hajnoczi
rbd callbacks are called from non-QEMU threads. Up until now a pipe was used to signal completion back to the QEMU iothread. The pipe writer code handles EAGAIN using select(2). The select(2) API is not scalable since fd_set size is static. FD_SET() can write beyond the end of fd_set if the fil