]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/mlx4: Fix race condition between catas error reset and aliasguid flows
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 6 Mar 2019 17:17:56 +0000 (19:17 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Aug 2019 11:38:42 +0000 (12:38 +0100)
commit507ed215f534a30043dac35a08ccf137166d6020
tree729bf9e783ae437a64ad7f439664ace55f1e6c93
parent64b2f2b04918e7e05f5286166e819238fc12a626
IB/mlx4: Fix race condition between catas error reset and aliasguid flows

commit 587443e7773e150ae29e643ee8f41a1eed226565 upstream.

Code review revealed a race condition which could allow the catas error
flow to interrupt the alias guid query post mechanism at random points.
Thiis is fixed by doing cancel_delayed_work_sync() instead of
cancel_delayed_work() during the alias guid mechanism destroy flow.

Fixes: a0c64a17aba8 ("mlx4: Add alias_guid mechanism")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/hw/mlx4/alias_GUID.c