diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-30 16:53:40 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-30 16:53:40 -0700 |
commit | fff75eb2a08c2ac96404a2d79685668f3cf5a7a3 (patch) | |
tree | 5a52f98e5f2247e1c348f31211c4e8b7230a5fa0 /fs/fcntl.c | |
parent | 8188fc8bef8c677d28a9dbbd2db6deaee1644180 (diff) | |
parent | b4678df184b314a2bd47d2329feca2c2534aa12b (diff) | |
download | linux-fff75eb2a08c2ac96404a2d79685668f3cf5a7a3.tar.bz2 |
Merge tag 'errseq-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux
Pull errseq infrastructure fix from Jeff Layton:
"The PostgreSQL developers recently had a spirited discussion about the
writeback error handling in Linux, and reached out to us about a
behavoir change to the code that bit them when the errseq_t changes
were merged.
When we changed to using errseq_t for tracking writeback errors, we
lost the ability for an application to see a writeback error that
occurred before the open on which the fsync was issued. This was
problematic for PostgreSQL which offloads fsync calls to a completely
separate process from the DB writers.
This patch restores that ability. If the errseq_t value in the inode
does not have the SEEN flag set, then we just return 0 for the sample.
That ensures that any recorded error is always delivered at least
once.
Note that we might still lose the error if the inode gets evicted from
the cache before anything can reopen it, but that was the case before
errseq_t was merged. At LSF/MM we had some discussion about keeping
inodes with unreported writeback errors around in the cache for longer
(possibly indefinitely), but that's really a separate problem"
* tag 'errseq-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux:
errseq: Always report a writeback error once
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions