Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1624898

Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new infrastructure

From NeilBrown <neilb@suse.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new infrastructure
Date 2017-04-18 01:00 +0200
Message-ID <txnMJ-6Bf-9@gated-at.bofh.it> (permalink)
References <tvpfY-4hS-3@gated-at.bofh.it> <tvpfY-4hS-13@gated-at.bofh.it> <tvyMh-2fe-7@gated-at.bofh.it> <tvzfk-2qi-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Apr 12 2017, Jeff Layton wrote:

> On Thu, 2017-04-13 at 08:14 +1000, NeilBrown wrote:
>> 
>> I suspect that the filemap_check_wb_error() will need to be moved
>> into some parent of the current call site, which is essentially what you
>> suggest below.  It would be nice if we could do that first, rather than
>> having the current rather odd code.  But maybe this way is an easier
>> transition.  It isn't obviously wrong, it just isn't obviously right
>> either.
>> 
>
> Yeah. It's just such a daunting task to have to change so much of the
> existing code. I'm looking for ways to make this simpler.
>
> I think it probably is reasonable for filemap_write_and_wait* to just
> sample it as early as possible in those functions. filemap_fdatawait is
> the real questionable one, as you may have already had some writebacks
> complete with errors.
>
> In any case, my thinking was that the old code is not obviously correct
> either, so while this shortens the "error capture window" on these
> calls, it seems like a reasonable place to start improving things.

I agree.  It wouldn't hurt to add a note to this effect in the patch
comment so that people understand that the code isn't seen to be
"correct" but only "no worse" with clear direction on what sort of
improvement might be appropriate.

Thanks,
NeilBrown

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 08/17] fs: retrofit old error reporting API onto new infrastructure Jeff Layton <jlayton@redhat.com> - 2017-04-12 14:10 +0200
  Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new infrastructure NeilBrown <neilb@suse.com> - 2017-04-13 00:20 +0200
    Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new  infrastructure Jeff Layton <jlayton@redhat.com> - 2017-04-13 00:50 +0200
      Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new infrastructure NeilBrown <neilb@suse.com> - 2017-04-18 01:00 +0200
        Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new  infrastructure Jeff Layton <jlayton@redhat.com> - 2017-04-21 14:50 +0200
          Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new infrastructure NeilBrown <neilb@suse.com> - 2017-04-24 00:40 +0200
            Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new  infrastructure Jeff Layton <jlayton@redhat.com> - 2017-04-24 14:00 +0200
    Re: [PATCH v2 08/17] fs: retrofit old error reporting API onto new  infrastructure Jeff Layton <jlayton@redhat.com> - 2017-04-17 17:20 +0200

csiph-web