Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-09 Thread Jeff Layton
On Thu, 2017-03-09 at 17:09 -0700, Ross Zwisler wrote: > On Wed, Mar 08, 2017 at 11:29:28AM -0500, Jeff Layton wrote: > > Currently we don't clear the address space error when there is a -EIO > > error on fsynci, due to writeback initiation failure. If writes fail > > fsync > > > with

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-09 Thread Jeff Layton
On Thu, 2017-03-09 at 17:09 -0700, Ross Zwisler wrote: > On Wed, Mar 08, 2017 at 11:29:28AM -0500, Jeff Layton wrote: > > Currently we don't clear the address space error when there is a -EIO > > error on fsynci, due to writeback initiation failure. If writes fail > > fsync > > > with

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-09 Thread Ross Zwisler
On Wed, Mar 08, 2017 at 11:29:28AM -0500, Jeff Layton wrote: > Currently we don't clear the address space error when there is a -EIO > error on fsynci, due to writeback initiation failure. If writes fail fsync > with -EIO and the mapping is flagged with an AS_EIO or AS_ENOSPC error, >

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-09 Thread Ross Zwisler
On Wed, Mar 08, 2017 at 11:29:28AM -0500, Jeff Layton wrote: > Currently we don't clear the address space error when there is a -EIO > error on fsynci, due to writeback initiation failure. If writes fail fsync > with -EIO and the mapping is flagged with an AS_EIO or AS_ENOSPC error, >

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread Jeff Layton
On Thu, 2017-03-09 at 08:23 +1100, NeilBrown wrote: > On Thu, Mar 09 2017, Jeff Layton wrote: > > > Currently we don't clear the address space error when there is a -EIO > > error on fsynci, due to writeback initiation failure. If writes fail > > with -EIO and the mapping is flagged with an

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread Jeff Layton
On Thu, 2017-03-09 at 08:23 +1100, NeilBrown wrote: > On Thu, Mar 09 2017, Jeff Layton wrote: > > > Currently we don't clear the address space error when there is a -EIO > > error on fsynci, due to writeback initiation failure. If writes fail > > with -EIO and the mapping is flagged with an

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread NeilBrown
On Thu, Mar 09 2017, Jeff Layton wrote: > Currently we don't clear the address space error when there is a -EIO > error on fsynci, due to writeback initiation failure. If writes fail > with -EIO and the mapping is flagged with an AS_EIO or AS_ENOSPC error, > then we can end up returning errors on

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread NeilBrown
On Thu, Mar 09 2017, Jeff Layton wrote: > Currently we don't clear the address space error when there is a -EIO > error on fsynci, due to writeback initiation failure. If writes fail > with -EIO and the mapping is flagged with an AS_EIO or AS_ENOSPC error, > then we can end up returning errors on

[PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread Jeff Layton
Currently we don't clear the address space error when there is a -EIO error on fsynci, due to writeback initiation failure. If writes fail with -EIO and the mapping is flagged with an AS_EIO or AS_ENOSPC error, then we can end up returning errors on two fsync calls, even when a write between them

[PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread Jeff Layton
Currently we don't clear the address space error when there is a -EIO error on fsynci, due to writeback initiation failure. If writes fail with -EIO and the mapping is flagged with an AS_EIO or AS_ENOSPC error, then we can end up returning errors on two fsync calls, even when a write between them