search for: rq_flags_bits

Displaying 1 result from an estimated 1 matches for "rq_flags_bits".

2018 Feb 07
1
Adjust type of rw in submit_bio from int to unsigned long
...rking on porting one of my block drivers from CentOS 6.x to CentOS 7.x. In newest kernel (kernel-3.10.0-693.17.1.el7) I found there is an issue in submit_bio()'s first argument: void submit_bio(int rw, struct bio *bio) The type of bi_rw of struct bio is unsigned long, and the number of enum rq_flags_bits also exceeds 32, so we should better using unsigned long for rw in submit_bio(), like: void submit_bio(unsigned long rw, struct bio *bio)