bsg: fix bsg_poll() to return POLLOUT properly
authorNamhyung Kim <namhyung@gmail.com>
Mon, 20 Jun 2011 11:27:44 +0000 (13:27 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 20 Jun 2011 11:27:44 +0000 (13:27 +0200)
commit80ceb057135ad77f513277f3bcd04b885501877a
tree78e4c78028097ddcf8229133701d6659bb44fa23
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2
bsg: fix bsg_poll() to return POLLOUT properly

POLLOUT should be returned only if bd->queued_cmds < bd->max_queue
so that bsg_alloc_command() can proceed.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/bsg.c