RE: [btrfs] c0aaf9b7a1: ltp: stuck at diotest4
From: Sang, Oliver
Date: Thu Sep 03 2020 - 11:03:44 EST
> -----Original Message-----
> From: David Sterba <dsterba@xxxxxxx>
> Sent: Thursday, September 3, 2020 5:11 PM
> To: Sang, Oliver <oliver.sang@xxxxxxxxx>
> Cc: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>; David Sterba
> <dsterba@xxxxxxxx>; LKML <linux-kernel@xxxxxxxxxxxxxxx>; lkp@xxxxxxxxxxxx;
> lkp <lkp@xxxxxxxxx>; ltp@xxxxxxxxxxxxxx; linux-btrfs@xxxxxxxxxxxxxxx
> Subject: Re: [btrfs] c0aaf9b7a1: ltp: stuck at diotest4
>
> On Thu, Sep 03, 2020 at 02:28:37PM +0800, kernel test robot wrote:
> > Greeting,
> >
> > FYI, we noticed the following commit (built with gcc-9):
> >
> > commit: c0aaf9b7a114f6b75e0da97be7d99c102347a751 ("btrfs: switch to
> > iomap_dio_rw() for dio")
> > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
> > master
>
> That's probably the O_DIRECT + O_(D)SYNC deadlock that was found recently.
> One of the cases in diotest4 does
>
> open(filename, O_DIRECT | O_RDWR | O_SYNC)
>
> Fix is work in progress, thanks for the report.
Thanks a lot for information!