diff options
author | NeilBrown <neilb@suse.com> | 2018-11-30 10:04:08 +1100 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2018-11-30 11:26:12 -0500 |
commit | 7b587e1a5a6cf6035ab1fbd6a1d00ce604eaf488 (patch) | |
tree | 617a4b092a7bb308366c5be64ae1774138a9740e /fs/gfs2/file.c | |
parent | ad6bbd8b18dad182a7e91d7826e27e9a64d935f9 (diff) | |
download | linux-stable-7b587e1a5a6cf6035ab1fbd6a1d00ce604eaf488.tar.gz linux-stable-7b587e1a5a6cf6035ab1fbd6a1d00ce604eaf488.tar.bz2 linux-stable-7b587e1a5a6cf6035ab1fbd6a1d00ce604eaf488.zip |
NFS: use locks_copy_lock() to copy locks.
Using memcpy() to copy lock requests leaves the various
list_head in an inconsistent state.
As we will soon attach a list of conflicting request to
another pending request, we need these lists to be consistent.
So change NFS to use locks_init_lock/locks_copy_lock instead
of memcpy.
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/gfs2/file.c')
0 files changed, 0 insertions, 0 deletions