]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/genhd.c
block: add a __disk_get_part helper
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Aug 2017 17:10:30 +0000 (19:10 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Aug 2017 18:49:52 +0000 (12:49 -0600)
commit807d4af2f64ed79fdbb28e582e330be3dbe10d23
tree11ed994bb09f7739c8d746f8d39b82df07aa7740
parentde65b0123216a8e1dbe3ca1eb20a45572b9e71d9
block: add a __disk_get_part helper

This helper allows looking up a partion under RCU protection without
grabbing a reference to it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/genhd.c