don't export bio_map_kern
PATCH 1/1 don't export bio_map_kern
Modules should use the higher-level blk_rq_map_kern, which they currently do anyway.
fs/bio.c +0 -1
@@ -1201,7 +1201,6 @@EXPORT_SYMBOL (bio_add_page);EXPORT_SYMBOL (bio_get_nr_vecs);EXPORT_SYMBOL (bio_unmap_user); -EXPORT_SYMBOL (bio_map_kern);EXPORT_SYMBOL (bio_pair_release);EXPORT_SYMBOL (bio_split);EXPORT_SYMBOL (bio_split_pool);
Quoted 9 lines · Christoph Hellwig
Modules should use the higher-level
blk_rq_map_kern, which they currently do anyway.Index:
linux-2.6/fs/bio.c
===================================================================
fs/bio.c line 1206
Quoted 7 lines
fs/bio.c +0
-1@@ -1201,7 +1201,6 @@EXPORT_SYMBOL (bio_add_page);EXPORT_SYMBOL (bio_get_nr_vecs);EXPORT_SYMBOL (bio_unmap_user); -EXPORT_SYMBOL (bio_map_kern);EXPORT_SYMBOL (bio_pair_release);EXPORT_SYMBOL (bio_split);EXPORT_SYMBOL (bio_split_pool);
Why? It would be perfectly legit for stacking driver to set up their own bio with kernel mapped data. As with bio_map_user(), blk_rq_map_kern isn't the only valid user of bio_map_kern().
Signature · 1 line
Jens Axboe