]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: handle -EBUSY first in lock arg validation
authorAlexander Aring <aahringo@redhat.com>
Mon, 15 Aug 2022 19:43:15 +0000 (15:43 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Aug 2022 19:39:51 +0000 (14:39 -0500)
commit15234ac4a87051286e1962300a5bf8887c2d2866
tree5b6918a766278b42f290d0ac4189923d6a7e2715
parentfdf4cd634640f13b07ae2c21403eea7002892231
fs: dlm: handle -EBUSY first in lock arg validation

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>
fs/dlm/lock.c