diff options
Diffstat (limited to 'drivers/message/i2o/i2o_block.c')
-rw-r--r-- | drivers/message/i2o/i2o_block.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c index f81c25d4a125..47ec5bc0ed21 100644 --- a/drivers/message/i2o/i2o_block.c +++ b/drivers/message/i2o/i2o_block.c | |||
@@ -897,11 +897,7 @@ static void i2o_block_request_fn(struct request_queue *q) | |||
897 | { | 897 | { |
898 | struct request *req; | 898 | struct request *req; |
899 | 899 | ||
900 | while (!blk_queue_plugged(q)) { | 900 | while ((req = blk_peek_request(q)) != NULL) { |
901 | req = blk_peek_request(q); | ||
902 | if (!req) | ||
903 | break; | ||
904 | |||
905 | if (req->cmd_type == REQ_TYPE_FS) { | 901 | if (req->cmd_type == REQ_TYPE_FS) { |
906 | struct i2o_block_delayed_request *dreq; | 902 | struct i2o_block_delayed_request *dreq; |
907 | struct i2o_block_request *ireq = req->special; | 903 | struct i2o_block_request *ireq = req->special; |