Skip to content
Commit 9f4107b0 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: store bdev->bd_disk->fops->submit_bio state in bdev



We have a long chain of memory dereferencing just to whether or not
this disk has a special submit_bio helper. As that's not necessarily
the common case, add a bd_has_submit_bio state in the bdev to avoid
traversing this memory dependency chain if we don't need to.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3838c406
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment