Alexander Aring bfe60d7641 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:25:08 +02:00
..
2021-07-14 16:55:59 +02:00
2020-09-29 14:00:32 -05:00
2021-05-19 10:12:52 +02:00
2020-08-27 15:59:09 -05:00
2020-08-06 10:30:49 -05:00
2020-09-29 14:00:32 -05:00
2022-06-09 10:21:24 +02:00