* Re: v4.4-rc4 regression with direct-io
@ 2015-12-08 21:51 ` Al Viro
0 siblings, 0 replies; 8+ messages in thread
From: Al Viro @ 2015-12-08 21:51 UTC (permalink / raw)
To: Ross Zwisler, Jan Kara, stable, Steven Whitehouse, Avi Kivity,
Jens Axboe, linux-fsdevel, xfs, torvalds
On Tue, Dec 08, 2015 at 02:39:02PM -0700, Ross Zwisler wrote:
> Hey Jan,
>
> In my test setup this commit:
>
> 74cedf9b6c60 ("direct-io: Fix negative return from dio read beyond eof")
>
> causes a regression with XFS and the test generic/113. The test used to
> pass, but with the above mentioned commit it just hangs indefinitely.
>
> This commit went in between v4.4-rc3 and v4.4-rc4, and it looks like it was
> marked for stable?
See the tip of vfs.git#for-linus for fix...
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: v4.4-rc4 regression with direct-io
2015-12-08 21:51 ` Al Viro
@ 2015-12-08 23:14 ` Ross Zwisler
-1 siblings, 0 replies; 8+ messages in thread
From: Ross Zwisler @ 2015-12-08 23:14 UTC (permalink / raw)
To: Al Viro
Cc: Avi Kivity, Jan Kara, stable, xfs, Jens Axboe, linux-fsdevel,
Ross Zwisler, torvalds, Steven Whitehouse
On Tue, Dec 08, 2015 at 09:51:09PM +0000, Al Viro wrote:
> On Tue, Dec 08, 2015 at 02:39:02PM -0700, Ross Zwisler wrote:
> > Hey Jan,
> >
> > In my test setup this commit:
> >
> > 74cedf9b6c60 ("direct-io: Fix negative return from dio read beyond eof")
> >
> > causes a regression with XFS and the test generic/113. The test used to
> > pass, but with the above mentioned commit it just hangs indefinitely.
> >
> > This commit went in between v4.4-rc3 and v4.4-rc4, and it looks like it was
> > marked for stable?
>
> See the tip of vfs.git#for-linus for fix...
I've confirmed that this fixes my test case. Thanks!
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: v4.4-rc4 regression with direct-io
@ 2015-12-08 23:14 ` Ross Zwisler
0 siblings, 0 replies; 8+ messages in thread
From: Ross Zwisler @ 2015-12-08 23:14 UTC (permalink / raw)
To: Al Viro
Cc: Ross Zwisler, Jan Kara, stable, Steven Whitehouse, Avi Kivity,
Jens Axboe, linux-fsdevel, xfs, torvalds
On Tue, Dec 08, 2015 at 09:51:09PM +0000, Al Viro wrote:
> On Tue, Dec 08, 2015 at 02:39:02PM -0700, Ross Zwisler wrote:
> > Hey Jan,
> >
> > In my test setup this commit:
> >
> > 74cedf9b6c60 ("direct-io: Fix negative return from dio read beyond eof")
> >
> > causes a regression with XFS and the test generic/113. The test used to
> > pass, but with the above mentioned commit it just hangs indefinitely.
> >
> > This commit went in between v4.4-rc3 and v4.4-rc4, and it looks like it was
> > marked for stable?
>
> See the tip of vfs.git#for-linus for fix...
I've confirmed that this fixes my test case. Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: v4.4-rc4 regression with direct-io
2015-12-08 21:51 ` Al Viro
@ 2015-12-09 11:49 ` Jan Kara
-1 siblings, 0 replies; 8+ messages in thread
From: Jan Kara @ 2015-12-09 11:49 UTC (permalink / raw)
To: Al Viro
Cc: Avi Kivity, Jan Kara, stable, xfs, Jens Axboe, linux-fsdevel,
Ross Zwisler, torvalds, Steven Whitehouse
On Tue 08-12-15 21:51:09, Al Viro wrote:
> On Tue, Dec 08, 2015 at 02:39:02PM -0700, Ross Zwisler wrote:
> > Hey Jan,
> >
> > In my test setup this commit:
> >
> > 74cedf9b6c60 ("direct-io: Fix negative return from dio read beyond eof")
> >
> > causes a regression with XFS and the test generic/113. The test used to
> > pass, but with the above mentioned commit it just hangs indefinitely.
> >
> > This commit went in between v4.4-rc3 and v4.4-rc4, and it looks like it was
> > marked for stable?
>
> See the tip of vfs.git#for-linus for fix...
Ah, thanks for fixing this up! I'm just wondering how the test program I
was using could have passed because pread() I'm doing there must have
returned ENOMEM... Argh, I see. I have tested the problem with ext4 which
uses DIO_LOCKING mode and in that case 'retval' gets overwritten to 0 by
filemap_write_and_wait() call :-|.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: v4.4-rc4 regression with direct-io
@ 2015-12-09 11:49 ` Jan Kara
0 siblings, 0 replies; 8+ messages in thread
From: Jan Kara @ 2015-12-09 11:49 UTC (permalink / raw)
To: Al Viro
Cc: Ross Zwisler, Jan Kara, stable, Steven Whitehouse, Avi Kivity,
Jens Axboe, linux-fsdevel, xfs, torvalds
On Tue 08-12-15 21:51:09, Al Viro wrote:
> On Tue, Dec 08, 2015 at 02:39:02PM -0700, Ross Zwisler wrote:
> > Hey Jan,
> >
> > In my test setup this commit:
> >
> > 74cedf9b6c60 ("direct-io: Fix negative return from dio read beyond eof")
> >
> > causes a regression with XFS and the test generic/113. The test used to
> > pass, but with the above mentioned commit it just hangs indefinitely.
> >
> > This commit went in between v4.4-rc3 and v4.4-rc4, and it looks like it was
> > marked for stable?
>
> See the tip of vfs.git#for-linus for fix...
Ah, thanks for fixing this up! I'm just wondering how the test program I
was using could have passed because pread() I'm doing there must have
returned ENOMEM... Argh, I see. I have tested the problem with ext4 which
uses DIO_LOCKING mode and in that case 'retval' gets overwritten to 0 by
filemap_write_and_wait() call :-|.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 8+ messages in thread