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
..
2021-07-20 16:21:00 +02:00
2016-06-21 09:04:24 -05:00
2021-05-22 10:40:29 +02:00
2014-02-14 11:54:44 -06:00
2014-11-19 14:48:02 -06:00
2020-08-21 11:02:04 +02:00
2021-07-20 16:20:59 +02:00
2019-11-28 18:29:00 +01:00
2022-06-14 16:52:34 +02:00
2014-02-14 11:54:44 -06:00
2014-02-14 11:54:44 -06:00
2019-12-21 10:41:21 +01:00