fs: dlm: return positive pid value for F_GETLK
authorAlexander Aring <aahringo@redhat.com>
Fri, 19 May 2023 15:21:24 +0000 (11:21 -0400)
committerDavid Teigland <teigland@redhat.com>
Mon, 22 May 2023 18:34:47 +0000 (13:34 -0500)
commit92655fbda5c05950a411eaabc19e025e86e2a291
tree409d59a73e6364c25fec5e029165e4072581bfd9
parent35d6df53b91632e8b20d3bd23510e68799c47a25
fs: dlm: return positive pid value for F_GETLK

The GETLK pid values have all been negated since commit 9d5b86ac13c5
("fs/locks: Remove fl_nspid and use fs-specific l_pid for remote locks").
Revert this for local pids, and leave in place negative pids for remote
owners.

Cc: stable@vger.kernel.org
Fixes: 9d5b86ac13c5 ("fs/locks: Remove fl_nspid and use fs-specific l_pid for remote locks")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/plock.c