HomeFreeBSD

iflib: Fix panic during driver reload stress test

Description

iflib: Fix panic during driver reload stress test

During a driver reload stress test, after 50-300 reloads a panic occurs.
After adding sleeps in between loading and unloading the driver, the
issue does not occur. It's possible that loading/unloading too fast may
cause the gt_taskqueue pointer to be freed earlier than expected;
checking for a null pointer first fixes it.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>

Reviewed by: erj@
Tested by: jeffrey.e.pieper@intel.com
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D39457

Details

Provenance
przemyslawx.lewandowski_intel.comAuthored on Jul 27 2023, 10:47 PM
erjCommitted on Jul 27 2023, 10:47 PM
Differential Revision
D39457: iflib: fix panic during driver reload stress test
Parents
rG831b1ff7913f: UFS/FFS: Migrate to modern uintXX_t from u_intXX_t.
Branches
Unknown
Tags
Unknown