Re: [RFC PATCH kernel] block: initialize block_device::bd_bdi for bdev_cache

2021-01-07 Thread Alexey Kardashevskiy
On 07/01/2021 18:48, Christoph Hellwig wrote: On Thu, Jan 07, 2021 at 10:58:39AM +1100, Alexey Kardashevskiy wrote: And AFAICT the root inode on bdev superblock can get only to bdev_evict_inode() and bdev_free_inode(). Looking at bdev_evict_inode() the only thing that's used there from

Re: [RFC PATCH kernel] block: initialize block_device::bd_bdi for bdev_cache

2021-01-06 Thread Christoph Hellwig
On Thu, Jan 07, 2021 at 10:58:39AM +1100, Alexey Kardashevskiy wrote: >> And AFAICT the root inode on >> bdev superblock can get only to bdev_evict_inode() and bdev_free_inode(). >> Looking at bdev_evict_inode() the only thing that's used there from struct >> block_device is really bd_bdi.

Re: [RFC PATCH kernel] block: initialize block_device::bd_bdi for bdev_cache

2021-01-06 Thread Alexey Kardashevskiy
On 06/01/2021 21:41, Jan Kara wrote: On Wed 06-01-21 20:29:00, Alexey Kardashevskiy wrote: This is a workaround to fix a null derefence crash: [cb01f840] cb01f880 (unreliable) [cb01f880] c0769a3c bdev_evict_inode+0x21c/0x370 [cb01f8c0]

Re: [RFC PATCH kernel] block: initialize block_device::bd_bdi for bdev_cache

2021-01-06 Thread Jan Kara
On Wed 06-01-21 20:29:00, Alexey Kardashevskiy wrote: > This is a workaround to fix a null derefence crash: > > [cb01f840] cb01f880 (unreliable) > [cb01f880] c0769a3c bdev_evict_inode+0x21c/0x370 > [cb01f8c0] c070bacc evict+0x11c/0x230 >

[RFC PATCH kernel] block: initialize block_device::bd_bdi for bdev_cache

2021-01-06 Thread Alexey Kardashevskiy
This is a workaround to fix a null derefence crash: [cb01f840] cb01f880 (unreliable) [cb01f880] c0769a3c bdev_evict_inode+0x21c/0x370 [cb01f8c0] c070bacc evict+0x11c/0x230 [cb01f900] c070c138 iput+0x2a8/0x4a0 [cb01f970]