2015-07-13 10:45:46

by Jeff Layton

[permalink] [raw]
Subject: [GIT PULL] please pull file-locking related changes for v4.2

The following changes since commit b9243b5a5d2da4eb0a54950f4e2d6272863b48be:

Merge branch 'parisc-4.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2015-07-10 16:54:37 -0700)

are available in the git repository at:

git://git.samba.org/jlayton/linux.git tags/locks-v4.2-1

for you to fetch changes up to ee296d7c5709440f8abd36b5b65c6b3e388538d9:

locks: inline posix_lock_file_wait and flock_lock_file_wait (2015-07-13 06:29:11 -0400)

----------------------------------------------------------------
File locking related changes for v4.2 (pile #1)

I had thought that I was going to get away without a pull request this
cycle. There was a NFSv4 file locking problem that cropped up that I
tried to fix in the NFSv4 code alone, but that fix has turned out to be
problematic. These patches fix this in the correct way.

Note that this touches some NFSv4 code as well. Ordinarily I'd wait for
Trond to ACK this, but he's on holiday right now and the bug is rather
nasty. So I suggest we merge this and if he raises issues with it we
can sort it out when he gets back.

----------------------------------------------------------------
Jeff Layton (5):
Revert "nfs: take extra reference to fl->fl_file when running a LOCKU operation"
locks: have flock_lock_file take an inode pointer instead of a filp
locks: new helpers - flock_lock_inode_wait and posix_lock_inode_wait
nfs4: have do_vfs_lock take an inode pointer
locks: inline posix_lock_file_wait and flock_lock_file_wait

fs/locks.c | 38 ++++++++++++++++++--------------------
fs/nfs/nfs4proc.c | 18 ++++++++----------
include/linux/fs.h | 30 ++++++++++++++++++++----------
3 files changed, 46 insertions(+), 40 deletions(-)


--
Jeff Layton <[email protected]>


Attachments:
(No filename) (819.00 B)
OpenPGP digital signature

2015-07-13 13:39:00

by J. Bruce Fields

[permalink] [raw]
Subject: Re: [GIT PULL] please pull file-locking related changes for v4.2

On Mon, Jul 13, 2015 at 06:45:32AM -0400, Jeff Layton wrote:
> The following changes since commit b9243b5a5d2da4eb0a54950f4e2d6272863b48be:
>
> Merge branch 'parisc-4.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2015-07-10 16:54:37 -0700)
>
> are available in the git repository at:
>
> git://git.samba.org/jlayton/linux.git tags/locks-v4.2-1
>
> for you to fetch changes up to ee296d7c5709440f8abd36b5b65c6b3e388538d9:
>
> locks: inline posix_lock_file_wait and flock_lock_file_wait (2015-07-13 06:29:11 -0400)
>
> ----------------------------------------------------------------
> File locking related changes for v4.2 (pile #1)
>
> I had thought that I was going to get away without a pull request this
> cycle. There was a NFSv4 file locking problem that cropped up that I
> tried to fix in the NFSv4 code alone, but that fix has turned out to be
> problematic. These patches fix this in the correct way.
>
> Note that this touches some NFSv4 code as well. Ordinarily I'd wait for
> Trond to ACK this, but he's on holiday right now and the bug is rather
> nasty. So I suggest we merge this and if he raises issues with it we
> can sort it out when he gets back.

Sounds reasonable to me.

(And without this my regular NFS testing crashes the client every time.)

--b.

>
> ----------------------------------------------------------------
> Jeff Layton (5):
> Revert "nfs: take extra reference to fl->fl_file when running a LOCKU operation"
> locks: have flock_lock_file take an inode pointer instead of a filp
> locks: new helpers - flock_lock_inode_wait and posix_lock_inode_wait
> nfs4: have do_vfs_lock take an inode pointer
> locks: inline posix_lock_file_wait and flock_lock_file_wait
>
> fs/locks.c | 38 ++++++++++++++++++--------------------
> fs/nfs/nfs4proc.c | 18 ++++++++----------
> include/linux/fs.h | 30 ++++++++++++++++++++----------
> 3 files changed, 46 insertions(+), 40 deletions(-)
>
>
> --
> Jeff Layton <[email protected]>

2015-07-14 17:05:37

by Dan Williams

[permalink] [raw]
Subject: Re: [GIT PULL] please pull file-locking related changes for v4.2

On Mon, Jul 13, 2015 at 6:38 AM, J. Bruce Fields <[email protected]> wrote:
> On Mon, Jul 13, 2015 at 06:45:32AM -0400, Jeff Layton wrote:
>> The following changes since commit b9243b5a5d2da4eb0a54950f4e2d6272863b48be:
>>
>> Merge branch 'parisc-4.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2015-07-10 16:54:37 -0700)
>>
>> are available in the git repository at:
>>
>> git://git.samba.org/jlayton/linux.git tags/locks-v4.2-1
>>
>> for you to fetch changes up to ee296d7c5709440f8abd36b5b65c6b3e388538d9:
>>
>> locks: inline posix_lock_file_wait and flock_lock_file_wait (2015-07-13 06:29:11 -0400)
>>
>> ----------------------------------------------------------------
>> File locking related changes for v4.2 (pile #1)
>>
>> I had thought that I was going to get away without a pull request this
>> cycle. There was a NFSv4 file locking problem that cropped up that I
>> tried to fix in the NFSv4 code alone, but that fix has turned out to be
>> problematic. These patches fix this in the correct way.
>>
>> Note that this touches some NFSv4 code as well. Ordinarily I'd wait for
>> Trond to ACK this, but he's on holiday right now and the bug is rather
>> nasty. So I suggest we merge this and if he raises issues with it we
>> can sort it out when he gets back.
>
> Sounds reasonable to me.
>
> (And without this my regular NFS testing crashes the client every time.)

+1 to this series fixing a 100% reproducible slab corruption + general
protection fault in my nfs-root test environment.

2015-07-14 17:31:08

by Anna Schumaker

[permalink] [raw]
Subject: Re: [GIT PULL] please pull file-locking related changes for v4.2

Hey Jeff,

On 07/13/2015 06:45 AM, Jeff Layton wrote:
> The following changes since commit b9243b5a5d2da4eb0a54950f4e2d6272863b48be:
>
> Merge branch 'parisc-4.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2015-07-10 16:54:37 -0700)
>
> are available in the git repository at:
>
> git://git.samba.org/jlayton/linux.git tags/locks-v4.2-1
>
> for you to fetch changes up to ee296d7c5709440f8abd36b5b65c6b3e388538d9:
>
> locks: inline posix_lock_file_wait and flock_lock_file_wait (2015-07-13 06:29:11 -0400)
>
> ----------------------------------------------------------------
> File locking related changes for v4.2 (pile #1)
>
> I had thought that I was going to get away without a pull request this
> cycle. There was a NFSv4 file locking problem that cropped up that I
> tried to fix in the NFSv4 code alone, but that fix has turned out to be
> problematic. These patches fix this in the correct way.
>
> Note that this touches some NFSv4 code as well. Ordinarily I'd wait for
> Trond to ACK this, but he's on holiday right now and the bug is rather
> nasty. So I suggest we merge this and if he raises issues with it we
> can sort it out when he gets back.

This looks reasonable to me, especially since Bruce and Dane have commented that it fixes their bugs. Is my acked-by good enough? :)

Acked-by: Anna Schumaker <[email protected]>

>
> ----------------------------------------------------------------
> Jeff Layton (5):
> Revert "nfs: take extra reference to fl->fl_file when running a LOCKU operation"
> locks: have flock_lock_file take an inode pointer instead of a filp
> locks: new helpers - flock_lock_inode_wait and posix_lock_inode_wait
> nfs4: have do_vfs_lock take an inode pointer
> locks: inline posix_lock_file_wait and flock_lock_file_wait
>
> fs/locks.c | 38 ++++++++++++++++++--------------------
> fs/nfs/nfs4proc.c | 18 ++++++++----------
> include/linux/fs.h | 30 ++++++++++++++++++++----------
> 3 files changed, 46 insertions(+), 40 deletions(-)
>
>