git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bsg: fix bsg_poll() to return POLLOUT properly
[pandora-kernel.git]
/
block
/
bsg.c
diff --git
a/block/bsg.c
b/block/bsg.c
index
0c8b64a
..
c4f49e2
100644
(file)
--- a/
block/bsg.c
+++ b/
block/bsg.c
@@
-878,7
+878,7
@@
static unsigned int bsg_poll(struct file *file, poll_table *wait)
spin_lock_irq(&bd->lock);
if (!list_empty(&bd->done_list))
mask |= POLLIN | POLLRDNORM;
- if (bd->queued_cmds
>=
bd->max_queue)
+ if (bd->queued_cmds
<
bd->max_queue)
mask |= POLLOUT;
spin_unlock_irq(&bd->lock);