]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] blk: Fix SG_IO ioctl failure retry looping
authorJens Axboe <axboe@suse.de>
Fri, 3 Feb 2006 07:37:08 +0000 (08:37 +0100)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Wed, 8 Feb 2006 09:07:13 +0000 (10:07 +0100)
commit8b6fbe48df158605f25f540856dff90b882e55b9
treede26c62e94ab279e18b8278cb7d74f1d14290a0c
parent1a8e7cfce46ca553034034238ab3cf498312b357
[PATCH] blk: Fix SG_IO ioctl failure retry looping

When issuing an SG_IO ioctl through sd that resulted in an unrecoverable
error, a nearly infinite retry loop was discovered. This is due to the
fact that the block layer SG_IO code is not setting up rq->retries. This
patch also fixes up the sg_scsi_ioctl path.

Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
block/scsi_ioctl.c