Re: [question] Panic in dax_writeback_one

2021-03-16 Thread chenjun (AM)
Thanks for the advices. I will check out that. 在 2021/3/17 12:55, Dan Williams 写道: > On Tue, Mar 16, 2021 at 8:00 PM chenjun (AM) wrote: >> >> 在 2021/3/12 1:25, Dan Williams 写道: >>> On Thu, Mar 11, 2021 at 4:20 AM Matthew Wilcox wrote: On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun

Re: [question] Panic in dax_writeback_one

2021-03-16 Thread Dan Williams
On Tue, Mar 16, 2021 at 8:00 PM chenjun (AM) wrote: > > 在 2021/3/12 1:25, Dan Williams 写道: > > On Thu, Mar 11, 2021 at 4:20 AM Matthew Wilcox wrote: > >> > >> On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: > >>> static int dax_writeback_one(struct xa_state *xas, struct dax_device >

Re: [question] Panic in dax_writeback_one

2021-03-16 Thread chenjun (AM)
在 2021/3/12 1:25, Dan Williams 写道: > On Thu, Mar 11, 2021 at 4:20 AM Matthew Wilcox wrote: >> >> On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: >>> static int dax_writeback_one(struct xa_state *xas, struct dax_device >>> *dax_dev, struct address_space *mapping, void *entry) >>>

Re: [question] Panic in dax_writeback_one

2021-03-11 Thread chenjun (AM)
在 2021/3/11 20:20, Matthew Wilcox 写道: > On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: >> static int dax_writeback_one(struct xa_state *xas, struct dax_device >> *dax_dev, struct address_space *mapping, void *entry) >> dax_flush(dax_dev, page_address(pfn_to_page(pfn)), count * PA

Re: [question] Panic in dax_writeback_one

2021-03-11 Thread Dan Williams
On Thu, Mar 11, 2021 at 4:20 AM Matthew Wilcox wrote: > > On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: > > static int dax_writeback_one(struct xa_state *xas, struct dax_device > > *dax_dev, struct address_space *mapping, void *entry) > > dax_flush(dax_dev, page_address(pfn_to_

Re: [question] Panic in dax_writeback_one

2021-03-11 Thread Matthew Wilcox
On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: > static int dax_writeback_one(struct xa_state *xas, struct dax_device > *dax_dev, struct address_space *mapping, void *entry) > dax_flush(dax_dev, page_address(pfn_to_page(pfn)), count * PAGE_SIZE); > The pfn is returned by the dri

[question] Panic in dax_writeback_one

2021-03-10 Thread chenjun (AM)
Hi I write a driver to simulate memory as a block device (like a ramdisk). and I hope the memory used would not be observed by kernel, becasue of the struct page will take many memory. When I mount ext2 with dax on my ramdisk. Panic will happen when fsync. Call trace: dax_writeback_one+0x330/