]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
bsg: fix a blocking read bug
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 8 May 2007 13:32:03 +0000 (15:32 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 16 Jul 2007 06:52:46 +0000 (08:52 +0200)
commite7d72173248c29c6f9ba14e40374266e1b954964
tree5f4d14d210ca3d49d209942be0ce60e65a433ce7
parent4cf0723ac89b5f2189da2ad07ef875de26b83c77
bsg: fix a blocking read bug

This patch fixes a bug that read() returns ENODATA even with a
blocking file descriptor when there are no commands pending.

This also includes some cleanups.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/bsg.c