<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/nfs/filelayout, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-06-03T06:23:30Z</updated>
<entry>
<title>NFS: fix an incorrect limit in filelayout_decode_layout()</title>
<updated>2021-06-03T06:23:30Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2021-05-11T08:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b287521e9e94bb342ebe5fd8c3fd7db9aef4e6f1'/>
<id>urn:sha1:b287521e9e94bb342ebe5fd8c3fd7db9aef4e6f1</id>
<content type='text'>
commit 769b01ea68b6c49dc3cde6adf7e53927dacbd3a8 upstream.

The "sizeof(struct nfs_fh)" is two bytes too large and could lead to
memory corruption.  It should be NFS_MAXFHSIZE because that's the size
of the -&gt;data[] buffer.

I reversed the size of the arguments to put the variable on the left.

Fixes: 16b374ca439f ("NFSv4.1: pnfs: filelayout: add driver's LAYOUTGET and GETDEVICEINFO infrastructure")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;trond.myklebust@hammerspace.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>NFSv4.1: nfs4_fl_prepare_ds must be careful about reporting success.</title>
<updated>2017-01-19T19:18:05Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2016-12-19T00:19:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=396b25173370fc1afa3bc91a315d5597c2b10734'/>
<id>urn:sha1:396b25173370fc1afa3bc91a315d5597c2b10734</id>
<content type='text'>
commit cfd278c280f997cf2fe4662e0acab0fe465f637b upstream.

Various places assume that if nfs4_fl_prepare_ds() turns a non-NULL 'ds',
then ds-&gt;ds_clp will also be non-NULL.

This is not necessasrily true in the case when the process received a fatal signal
while nfs4_pnfs_ds_connect is waiting in nfs4_wait_ds_connect().
In that case -&gt;ds_clp may not be set, and the devid may not recently have been marked
unavailable.

So add a test for ds_clp == NULL and return NULL in that case.

Fixes: c23266d532b4 ("NFS4.1 Fix data server connection race")
Signed-off-by: NeilBrown &lt;neilb@suse.com&gt;
Acked-by: Olga Kornievskaia &lt;aglo@umich.edu&gt;
Acked-by: Adamson, Andy &lt;William.Adamson@netapp.com&gt;
Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>pNFS/files: filelayout_write_done_cb must call nfs_writeback_update_inode()</title>
<updated>2016-07-21T13:46:42Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2016-07-21T13:43:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e033fb51ebb2983ee17b4a1b96ccbaedb137d9e9'/>
<id>urn:sha1:e033fb51ebb2983ee17b4a1b96ccbaedb137d9e9</id>
<content type='text'>
All write callbacks are required to call nfs_writeback_update_inode() upon
success to ensure that file size changes are recorded, and the attribute
cache is invalidated.

Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>pNFS: Files and flexfiles always need to commit before layoutcommit</title>
<updated>2016-07-05T23:08:01Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2016-06-26T22:54:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e18d4d822ea9cc811ea26a880cf2ed47cbf8889'/>
<id>urn:sha1:2e18d4d822ea9cc811ea26a880cf2ed47cbf8889</id>
<content type='text'>
So ensure that we mark the layout for commit once the write is done,
and then ensure that the commit to ds is finished before sending
layoutcommit.

Note that by doing this, we're able to optimise away the commit
for the case of servers that don't need layoutcommit in order to
return updated attributes.

Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>pNFS/files: Fix layoutcommit after a commit to DS</title>
<updated>2016-07-05T22:52:25Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2016-06-26T16:27:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73e6c5d854d3f7f75e8b46d3e54aeb5d83fe6b1f'/>
<id>urn:sha1:73e6c5d854d3f7f75e8b46d3e54aeb5d83fe6b1f</id>
<content type='text'>
According to the errata
https://www.rfc-editor.org/errata_search.php?rfc=5661&amp;eid=2751
we should always send layout commit after a commit to DS.

Fixes: bc7d4b8fd091 ("nfs/filelayout: set layoutcommit...")
Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>pnfs: pnfs_update_layout needs to consider if strict iomode checking is on</title>
<updated>2016-05-26T12:40:56Z</updated>
<author>
<name>Tom Haynes</name>
</author>
<published>2016-05-25T14:31:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7d73af2d249f0323f5cdb171a59497ce80011fb'/>
<id>urn:sha1:c7d73af2d249f0323f5cdb171a59497ce80011fb</id>
<content type='text'>
As flexfiles has FF_FLAGS_NO_READ_IO, there is a need to generically
support enforcing that a IOMODE_RW segment will not allow READ I/O.

Signed-off-by: Tom Haynes &lt;loghyr@primarydata.com&gt;
Signed-off-by: Anna Schumaker &lt;Anna.Schumaker@Netapp.com&gt;
</content>
</entry>
<entry>
<title>NFS: Save struct inode * inside nfs_commit_info to clarify usage of i_lock</title>
<updated>2016-05-09T13:05:40Z</updated>
<author>
<name>Dave Wysochanski</name>
</author>
<published>2016-04-01T17:45:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe238e601d2519f259103ab65caea3b077ed7b39'/>
<id>urn:sha1:fe238e601d2519f259103ab65caea3b077ed7b39</id>
<content type='text'>
Commit ea2cf22 created nfs_commit_info and saved &amp;inode-&gt;i_lock inside
this NFS specific structure.  This obscures the usage of i_lock.
Instead, save struct inode * so later it's clear the spinlock taken is
i_lock.

Should be no functional change.

Signed-off-by: Dave Wysochanski &lt;dwysocha@redhat.com&gt;
Signed-off-by: Anna Schumaker &lt;Anna.Schumaker@Netapp.com&gt;
</content>
</entry>
<entry>
<title>NFS: Simplify nfs_request_add_commit_list() arguments</title>
<updated>2016-01-21T20:54:04Z</updated>
<author>
<name>Anna Schumaker</name>
</author>
<published>2016-01-15T21:54:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6272dcc6beebbc2d8cf4165b628169e878f143e0'/>
<id>urn:sha1:6272dcc6beebbc2d8cf4165b628169e878f143e0</id>
<content type='text'>
I noticed that all the callers of this function pass cinfo-&gt;mds-&gt;list as
an argument in addition to the cinfo structure itself.  Let's get rid of
the extra argument, since it doesn't seem to be adding anything.

Signed-off-by: Anna Schumaker &lt;Anna.Schumaker@Netapp.com&gt;
Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>pNFS/flexfiles: Don't mark the entire layout as failed, when returning it</title>
<updated>2015-12-28T19:32:40Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2015-12-15T16:15:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9fc773ef512dd3db71560463d0e5543c35fe976'/>
<id>urn:sha1:b9fc773ef512dd3db71560463d0e5543c35fe976</id>
<content type='text'>
In pNFS/flexfiles, we want to return the layout without necessarily marking
it as having completely failed. We therefore move the call to
pnfs_layout_io_set_failed() out of pnfs_error_mark_layout_for_return(),
and then ensura that pNFS/files layout calls it separately.

Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>NFS41: pop some layoutget errors to application</title>
<updated>2015-12-28T19:32:36Z</updated>
<author>
<name>Peng Tao</name>
</author>
<published>2015-12-03T18:57:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d600ad1f2bdbf97c4818dcc85b174f72c90c21bd'/>
<id>urn:sha1:d600ad1f2bdbf97c4818dcc85b174f72c90c21bd</id>
<content type='text'>
For ERESTARTSYS/EIO/EROFS/ENOSPC/E2BIG in layoutget, we
should just bail out instead of hiding the error and
retrying inband IO.

Change all the call sites to pop the error all the way up.

Signed-off-by: Peng Tao &lt;tao.peng@primarydata.com&gt;
Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
</feed>
