Re: [CentOS] Adjust type of rw in submit_bio from int to unsigned long

2018-02-08 Thread wuzhouhui
Forward mail to centos-devel mailing list for getting more attentions! Sorry for disturbing. > -Original Messages- > From: wuzhouhui > Sent Time: 2018-02-07 13:44:07 (Wednesday) > To: centos@centos.org > Cc: wuzhouhui14 > Subject: Adjust type of rw in submit_bio from int to unsigned lon

[CentOS] Adjust type of rw in submit_bio from int to unsigned long

2018-02-06 Thread wuzhouhui
Hi, I am a developer who worked on CentOS. Recently I am working 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_