mirror of https://gitee.com/openkylin/linux.git
[BLOCK] bio: init ->bi_bdev in bio_init()
For SG_IO requests, bio->bi_bdev may not be explicitly initialized. So make bio_init() clear the field to make sure it's always NULL or valid. Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
parent
769db45b73
commit
0ea60b5ad8
Loading…
Reference in New Issue