Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110500
b: refs/heads/master
c: 6054016
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Oct 9, 2008
1 parent 4f421fe commit 8147eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab780f1ece0dc8d5e8e8e85435acc5e4747ccda3
refs/heads/master: 605401618ce4409045bc4db86e88d4b38f2ad585
5 changes: 2 additions & 3 deletions trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ static int blk_end_io(struct request *rq, int error, unsigned int nr_bytes,
struct request_queue *q = rq->q;
unsigned long flags = 0UL;

if (bio_has_data(rq->bio) || blk_discard_rq(rq)) {
if (rq->bio) {
if (__end_that_request_first(rq, error, nr_bytes))
return 1;

Expand Down Expand Up @@ -1875,8 +1875,7 @@ EXPORT_SYMBOL_GPL(blk_end_request);
**/
int __blk_end_request(struct request *rq, int error, unsigned int nr_bytes)
{
if ((bio_has_data(rq->bio) || blk_discard_rq(rq)) &&
__end_that_request_first(rq, error, nr_bytes))
if (rq->bio && __end_that_request_first(rq, error, nr_bytes))
return 1;

add_disk_randomness(rq->rq_disk);
Expand Down

0 comments on commit 8147eed

Please sign in to comment.