Alexander Aring ab0c40bd8a fs: dlm: handle -EBUSY first in lock arg validation
commit 44637ca41d551d409a481117b07fa209b330fca9 upstream.

During lock arg validation, first check for -EBUSY cases, then for
-EINVAL cases. The -EINVAL checks look at lkb state variables
which are not stable when an lkb is busy and would cause an
-EBUSY result, e.g. lkb->lkb_grmode.

Cc: stable@vger.kernel.org
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 13:15:37 +02:00
..
2020-01-29 10:24:34 +01:00
2019-08-06 18:29:38 +02:00
2022-08-25 11:09:24 +02:00
2019-03-13 14:04:52 -07:00
2018-12-21 14:11:31 +01:00
2018-02-17 13:21:15 +01:00
2021-12-14 10:04:48 +01:00
2017-06-14 15:06:01 +02:00