diff options
author | Matthew Wilcox <[email protected]> | 2018-04-24 14:02:57 -0700 |
---|---|---|
committer | Jeff Layton <[email protected]> | 2018-04-27 08:51:26 -0400 |
commit | b4678df184b314a2bd47d2329feca2c2534aa12b (patch) | |
tree | 6c9da9eabee5ab70d5b06d996e380c858496c07e /net/tipc/socket.c | |
parent | 0644f186fc9d77bb5bd198369e59fb28927a3692 (diff) |
errseq: Always report a writeback error once
The errseq_t infrastructure assumes that errors which occurred before
the file descriptor was opened are of no interest to the application.
This turns out to be a regression for some applications, notably Postgres.
Before errseq_t, a writeback error would be reported exactly once (as
long as the inode remained in memory), so Postgres could open a file,
call fsync() and find out whether there had been a writeback error on
that file from another process.
This patch changes the errseq infrastructure to report errors to all
file descriptors which are opened after the error occurred, but before
it was reported to any file descriptor. This restores the user-visible
behaviour.
Cc: [email protected]
Fixes: 5660e13d2fd6 ("fs: new infrastructure for writeback error handling and reporting")
Signed-off-by: Matthew Wilcox <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions