Re: remove blkdev_get as a public API v2

From
Jens Axboe <axboe@kernel.dk>
Date
2020-09-23 16:44:03
Also in
linux-fsdevel, linux-ide, linux-mm, linux-pm, linux-s390, lkml, ocfs2-devel
Reply to
Christoph Hellwig, 2020-09-21
On 9/21/20 1:19 AM, Christoph Hellwig wrote:
Hi Jens,

this series removes blkdev_get as a public API, leaving it as just an
implementation detail of blkdev_get_by_path and blkdev_get_by_dev.  The
reason for that is that blkdev_get is a very confusing API that requires
a struct block_device to be fed in, but then actually consumes the
reference.  And it turns out just using the two above mentioned APIs
actually significantly simplifies the code as well.

Changes since v1:
 - fix a mismerged that left a stray bdget_disk around
 - factour the partition scan at registration time code into a new
   helper.
Applied for 5.10, thanks.

-- 
Jens Axboe
Thread (19 messages) 19 messages, 5 authors, last reply 2020-09-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help