Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions drivers/md/bcache/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ static void detached_dev_end_io(struct bio *bio)
}

kfree(ddip);
bio_endio(bio);
bio->bi_end_io(bio);
}

static void detached_dev_do_request(struct bcache_device *d, struct bio *bio,
Expand All @@ -1121,7 +1121,7 @@ static void detached_dev_do_request(struct bcache_device *d, struct bio *bio,
ddip = kzalloc(sizeof(struct detached_dev_io_private), GFP_NOIO);
if (!ddip) {
bio->bi_status = BLK_STS_RESOURCE;
bio_endio(bio);
bio->bi_end_io(bio);
return;
}

Expand All @@ -1136,7 +1136,7 @@ static void detached_dev_do_request(struct bcache_device *d, struct bio *bio,

if ((bio_op(bio) == REQ_OP_DISCARD) &&
!bdev_max_discard_sectors(dc->bdev))
detached_dev_end_io(bio);
bio->bi_end_io(bio);
else
submit_bio_noacct(bio);
}
Expand Down