Re: [PATCH] ext4: move buffer_mapped() to proper position

2020-08-07 Thread Andreas Dilger
> On Aug 7, 2020, at 2:02 PM, ty...@mit.edu wrote: > > Thanks, applied, although I rewrote the commit description to make it > be a bit more clearer: > >fs: prevent BUG_ON in submit_bh_wbc() > >If a device is hot-removed --- for example, when a physical device is >unplugged from pci

Re: [PATCH] ext4: move buffer_mapped() to proper position

2020-08-07 Thread tytso
Thanks, applied, although I rewrote the commit description to make it be a bit more clearer: fs: prevent BUG_ON in submit_bh_wbc() If a device is hot-removed --- for example, when a physical device is unplugged from pcie slot or a nbd device's network is shutdown --- this can

[PATCH] ext4: move buffer_mapped() to proper position

2020-07-31 Thread Xianting Tian
As you know, commit a17712c8 has added below code to aviod a crash( 'BUG_ON(!buffer_mapped(bh))' in submit_bh_wbc) when device hot-removed(a physical device is unpluged from pcie slot or a nbd device's network is shutdown). static int ext4_commit_super(): if (!sbh || block_device_ejected(sb