Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to rewrite according to the new blk-mq API for kernel 5.x+. #15

Open
rgolubtsov opened this issue Oct 12, 2021 · 0 comments
Open
Assignees

Comments

@rgolubtsov
Copy link
Owner

Building against the kernel 5.x fails with the following (tried under Ubuntu Focal):

$ make
...
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-88-generic'
...
/home/<vmusername>/virtblkiosim/src/virtblkiosim.c:408:19: error: implicit declaration of function ‘blk_fetch_request’; did you mean ‘blk_get_request’? [-Werror=implicit-function-declaration]
  408 |     while ((req = blk_fetch_request(viosim_req_qu)) != NULL) {
      |                   ^~~~~~~~~~~~~~~~~
      |                   blk_get_request
...
/home/<vmusername>/virtblkiosim/src/virtblkiosim.c:415:9: error: implicit declaration of function ‘__blk_end_request_all’ [-Werror=implicit-function-declaration]
  415 |         __blk_end_request_all(req, ret);
      |         ^~~~~~~~~~~~~~~~~~~~~
...
/home/<vmusername>/virtblkiosim/src/virtblkiosim.c:737:21: error: implicit declaration of function ‘blk_init_queue’; did you mean ‘blk_put_queue’? [-Werror=implicit-function-declaration]
  737 |     viosim_req_qu = blk_init_queue((request_fn_proc *) viosim_req_proc,
      |                     ^~~~~~~~~~~~~~
      |                     blk_put_queue
...
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-88-generic'
...

This is because of the new blk-mq API was introduced and some unnecessary functions have gone, see for ref.:

@rgolubtsov rgolubtsov self-assigned this Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant