mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
bio-integrity: stop abusing bi_end_io
And instead call directly into the integrity code from bio_end_io. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
63573e359d
commit
7c20f11680
4 changed files with 25 additions and 39 deletions
|
|
@ -243,9 +243,6 @@ fallback:
|
|||
void bio_uninit(struct bio *bio)
|
||||
{
|
||||
bio_disassociate_task(bio);
|
||||
|
||||
if (bio_integrity(bio))
|
||||
bio_integrity_free(bio);
|
||||
}
|
||||
EXPORT_SYMBOL(bio_uninit);
|
||||
|
||||
|
|
@ -1813,6 +1810,8 @@ void bio_endio(struct bio *bio)
|
|||
again:
|
||||
if (!bio_remaining_done(bio))
|
||||
return;
|
||||
if (!bio_integrity_endio(bio))
|
||||
return;
|
||||
|
||||
/*
|
||||
* Need to have a real endio function for chained bios, otherwise
|
||||
|
|
|
|||
Loading…
Reference in a new issue