Andreas Gruenbacher 605b0487f0 gfs2: Fix missed wakeups in find_insert_glock
Mark Syms has reported seeing tasks that are stuck waiting in
find_insert_glock.  It turns out that struct lm_lockname contains four padding
bytes on 64-bit architectures that function glock_waitqueue doesn't skip when
hashing the glock name.  As a result, we can end up waking up the wrong
waitqueue, and the waiting tasks may be stuck forever.

Fix that by using ht_parms.key_len instead of sizeof(struct lm_lockname) for
the key length.

Reported-by: Mark Syms <mark.syms@citrix.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2019-03-08 15:49:01 +01:00
..
2016-05-12 22:28:05 -04:00
2018-07-02 16:27:17 +01:00
2018-06-04 07:56:51 -05:00
2016-06-27 09:47:09 -05:00
2018-10-12 07:33:07 -05:00
2016-06-27 09:47:08 -05:00
2019-03-06 07:00:43 -07:00
2018-02-01 11:25:31 -07:00
2018-12-11 21:43:58 +01:00
2018-10-12 07:31:21 -05:00
2018-03-08 09:26:20 -07:00
2018-07-25 00:06:24 +02:00
2012-01-11 09:23:05 +00:00
2018-12-11 21:43:58 +01:00
2018-07-05 17:47:16 +02:00
2015-12-06 21:25:17 -05:00