search for: 2dbcd41

Displaying 2 results from an estimated 2 matches for "2dbcd41".

2010 Sep 16
2
[PATCH 1/2] virtio: console: Fix poll blocking even though there is data to read
...ned-off-By: Hans de Goede <hdegoede at redhat.com> Signed-off-by: Amit Shah <amit.shah at redhat.com> --- drivers/char/virtio_console.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index be67d6b..2dbcd41 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -710,7 +710,7 @@ static unsigned int port_fops_poll(struct file *filp, poll_table *wait) return POLLHUP; } ret = 0; - if (port->inbuf) + if (!will_read_block(port)) ret |= POLLIN | POLLRDNORM; if (!will...
2010 Sep 16
2
[PATCH 1/2] virtio: console: Fix poll blocking even though there is data to read
...ned-off-By: Hans de Goede <hdegoede at redhat.com> Signed-off-by: Amit Shah <amit.shah at redhat.com> --- drivers/char/virtio_console.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index be67d6b..2dbcd41 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -710,7 +710,7 @@ static unsigned int port_fops_poll(struct file *filp, poll_table *wait) return POLLHUP; } ret = 0; - if (port->inbuf) + if (!will_read_block(port)) ret |= POLLIN | POLLRDNORM; if (!will...