Message ID | 20181208163639.GR24487@magnolia (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [GIT,PULL] xfs: fixes for v4.20-rc6 | expand |
On Sat, Dec 8, 2018 at 8:36 AM Darrick J. Wong <darrick.wong@oracle.com> wrote: > > Finally, the most important fix is to the pipe splicing code (aka the > generic copy_file_range fallback) to avoid pointless short directio > reads by only asking the filesystem for as much data as there are > available pages in the pipe buffer. Our previous fix (simulated short > directio reads because the number of pages didn't match the length of > the read requested) caused subtle problems on overlayfs, so that part is > reverted. Honestly, I really wish you simply wouldn't send me "xfs" fixes that aren't really xfs-specific at all. All the splice patches (and honestly, I feel some of the iomap ones too) that have come in through the xfs tree should have been handled separately as actual VFS patches. Or at least had acks from Al or something. I'm looking at that splice patch, and my initial reaction was "Hmm. but that breaks 0 vs -EAGAIN". But then I realized that that's why you're validating pipe->nrbufs, because the special temporary per-thread pipe is always supposed to be empty on entry, so a zero length can't happen. But just the fact that I felt like I had to go and look at one of these commits makes me go "this is not an XFS fix at all, it shouldn't have been treated as an XFS patch, and the original commit that *caused* the problem shouldn't have been treated as one either". So please. I want to feel like when I get a XFS pull from the XFS maintainer, I don't need to worry about it, and I can just do the git pull without having to check details. But that means that when you do changes outside of XFS code, those changes need to be handled _differently_. And they shouldn't be bypassing Al etc. And even if you can't get an Ack from Al, send them separately, so that I can check them without there being any XFS issues that are mixed up with the pull. So the patch looks good, and I'm merging this, but I really really don't have to feel like I need to look at xfs pulls this way. Linus
The pull request you sent on Sat, 8 Dec 2018 08:36:39 -0800:
> git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-4.20-fixes-3
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f896adc42d5399eb68c9900bd4fd471ccea895e4
Thank you!
On Sat, Dec 08, 2018 at 11:24:48AM -0800, Linus Torvalds wrote: > Honestly, I really wish you simply wouldn't send me "xfs" fixes that > aren't really xfs-specific at all. > > All the splice patches (and honestly, I feel some of the iomap ones > too) that have come in through the xfs tree should have been handled > separately as actual VFS patches. Or at least had acks from Al or > something. iomap came in through the XFS tree originally, and has been very much maintained in combo, even though we now have another user with gfs. Maybe we just need to make that official in MAINTAINERS?
On Sat, Dec 08, 2018 at 11:24:48AM -0800, Linus Torvalds wrote: > On Sat, Dec 8, 2018 at 8:36 AM Darrick J. Wong <darrick.wong@oracle.com> wrote: > > > > Finally, the most important fix is to the pipe splicing code (aka the > > generic copy_file_range fallback) to avoid pointless short directio > > reads by only asking the filesystem for as much data as there are > > available pages in the pipe buffer. Our previous fix (simulated short > > directio reads because the number of pages didn't match the length of > > the read requested) caused subtle problems on overlayfs, so that part is > > reverted. > > Honestly, I really wish you simply wouldn't send me "xfs" fixes that > aren't really xfs-specific at all. > > All the splice patches (and honestly, I feel some of the iomap ones > too) that have come in through the xfs tree should have been handled > separately as actual VFS patches. Or at least had acks from Al or > something. > > I'm looking at that splice patch, and my initial reaction was "Hmm. > but that breaks 0 vs -EAGAIN". But then I realized that that's why > you're validating pipe->nrbufs, because the special temporary > per-thread pipe is always supposed to be empty on entry, so a zero > length can't happen. > > But just the fact that I felt like I had to go and look at one of > these commits makes me go "this is not an XFS fix at all, it shouldn't > have been treated as an XFS patch, and the original commit that > *caused* the problem shouldn't have been treated as one either". > > So please. I want to feel like when I get a XFS pull from the XFS > maintainer, I don't need to worry about it, and I can just do the git > pull without having to check details. > > But that means that when you do changes outside of XFS code, those > changes need to be handled _differently_. And they shouldn't be > bypassing Al etc. And even if you can't get an Ack from Al, send them > separately, so that I can check them without there being any XFS > issues that are mixed up with the pull. Ok, I'll put xfs and vfs changesets in separate pull requests in the future. Thanks for the feedback. --D > So the patch looks good, and I'm merging this, but I really really > don't have to feel like I need to look at xfs pulls this way. > > Linus
On Tue, Dec 11, 2018 at 05:58:18AM -0800, Christoph Hellwig wrote: > On Sat, Dec 08, 2018 at 11:24:48AM -0800, Linus Torvalds wrote: > > Honestly, I really wish you simply wouldn't send me "xfs" fixes that > > aren't really xfs-specific at all. > > > > All the splice patches (and honestly, I feel some of the iomap ones > > too) that have come in through the xfs tree should have been handled > > separately as actual VFS patches. Or at least had acks from Al or > > something. > > iomap came in through the XFS tree originally, and has been very much > maintained in combo, even though we now have another user with gfs. > > Maybe we just need to make that official in MAINTAINERS? Yes, though who should be the official maintainer? You wrote most of the iomap code; do you want to maintain it yourself? Or have people funnel them wherever XFS patches go? :) --D
On Wed, Dec 12, 2018 at 10:16:58AM -0800, Darrick J. Wong wrote: > On Tue, Dec 11, 2018 at 05:58:18AM -0800, Christoph Hellwig wrote: > > On Sat, Dec 08, 2018 at 11:24:48AM -0800, Linus Torvalds wrote: > > > Honestly, I really wish you simply wouldn't send me "xfs" fixes that > > > aren't really xfs-specific at all. > > > > > > All the splice patches (and honestly, I feel some of the iomap ones > > > too) that have come in through the xfs tree should have been handled > > > separately as actual VFS patches. Or at least had acks from Al or > > > something. > > > > iomap came in through the XFS tree originally, and has been very much > > maintained in combo, even though we now have another user with gfs. > > > > Maybe we just need to make that official in MAINTAINERS? > > Yes, though who should be the official maintainer? You wrote most of > the iomap code; do you want to maintain it yourself? Or have people > funnel them wherever XFS patches go? :) Well, the original version is from Dave, although I'm not sure if much of that code is left. I think just maintaining it with XFS is a good idea. But if we need an explicit maintainer I can do it.