Do not submit IO in complete flush

Signed-off-by: Toby Roth <toby.roth@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Toby Roth 2024-05-15 13:31:16 +03:00 committed by Robert Baldyga
parent ab81ac667b
commit 988ac5f645

View File

@ -370,10 +370,7 @@ static void blkdev_complete_flush(struct ocf_io *io, int error)
return;
}
if (in_interrupt())
blkdev_defer_bio(bvol, bio, blkdev_handle_bio_noflush);
else
blkdev_handle_bio_noflush(bvol, bio);
blkdev_defer_bio(bvol, bio, blkdev_handle_bio_noflush);
}
static void blkdev_handle_flush(struct bd_object *bvol, struct bio *bio)