freebsd-dev/sys/dev/safexcel
Mark Johnston 092cf8d63f safexcel: Fix a race around unblocking of crypto ops
safexcel_ring_intr() could fail to observed that sc_blocked is set after
completing all outstanding ops for a ring, in which case blocked ops
would be deferred forever.

Request structures are managed by individual rings, so move the
"blocked" flag into the per-ring state block and use the ring lock to
synchronize with safexcel_process().  Remove sc_mtx since it is now
unused.

MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC (Netgate)
2021-01-08 13:32:04 -05:00
..
safexcel_reg.h safexcel: clean up empty lines in .c and .h files 2020-09-01 21:54:58 +00:00
safexcel_var.h safexcel: Fix a race around unblocking of crypto ops 2021-01-08 13:32:04 -05:00
safexcel.c safexcel: Fix a race around unblocking of crypto ops 2021-01-08 13:32:04 -05:00