Re: [PATCH 23/45] block: remove i_bdev

2020-11-25 Thread Tejun Heo
Hello, On Wed, Nov 25, 2020 at 05:29:26PM +0100, Christoph Hellwig wrote: > > I was wondering whether losing the stale bdev flushing in bd_acquire() would > > cause user-visible behavior changes but can't see how it would given that > > userland has no way of holding onto a specific instance of bl

Re: [PATCH 23/45] block: remove i_bdev

2020-11-25 Thread Christoph Hellwig
On Tue, Nov 24, 2020 at 02:37:05PM -0500, Tejun Heo wrote: > On Tue, Nov 24, 2020 at 02:27:29PM +0100, Christoph Hellwig wrote: > > Switch the block device lookup interfaces to directly work with a dev_t > > so that struct block_device references are only acquired by the > > blkdev_get variants (an

Re: [PATCH 23/45] block: remove i_bdev

2020-11-24 Thread Tejun Heo
On Tue, Nov 24, 2020 at 02:27:29PM +0100, Christoph Hellwig wrote: > Switch the block device lookup interfaces to directly work with a dev_t > so that struct block_device references are only acquired by the > blkdev_get variants (and the blk-cgroup special case). This means that > we not don't nee

Re: [PATCH 23/45] block: remove i_bdev

2020-11-24 Thread Coly Li
On 11/24/20 9:27 PM, Christoph Hellwig wrote: > Switch the block device lookup interfaces to directly work with a dev_t > so that struct block_device references are only acquired by the > blkdev_get variants (and the blk-cgroup special case). This means that > we not don't need an extra reference