Alexander Aring bc236ebc2a dlm: fix user space lock decision to copy lvb
[ Upstream commit ad191e0eeebf64a60ca2d16ca01a223d2b1dd25e ]

This patch fixes the copy lvb decision for user space lock requests.
Checking dlm_lvb_operations is done earlier, where granted/requested
lock modes are available to use in the matrix.

The decision had been moved to the wrong location, where granted mode
and requested mode where the same, which causes the dlm_lvb_operations
matix to produce the wrong copy decision. For PW or EX requests, the
caller could get invalid lvb data.

Fixes: 61bed0baa4db ("fs: dlm: use a non-static queue for callbacks")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:11:38 +02:00
..
2023-03-06 15:49:07 -06:00
2024-01-25 15:35:17 -08:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-03-06 15:49:07 -06:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-03-06 15:49:07 -06:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-11-20 11:59:21 +01:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2022-04-06 14:02:37 -05:00
2022-04-06 14:02:37 -05:00