HomeFreeBSD

Avoid sleeping when the mirror I/O queue is non-empty.

Description

Avoid sleeping when the mirror I/O queue is non-empty.

A request may be queued while the queue lock is dropped when the mirror is
being destroyed. The corresponding wakeup would be lost, possibly resulting
in an apparent hang of the mirror worker thread.

Tested by: pho (part of a larger patch)
MFC after: 1 week
Sponsored by: Dell EMC Isilon

Details

Provenance
markjAuthored on
Parents
rS316174: Remove an unneeded g_mirror_destroy_provider() call.
Branches
Unknown
Tags
Unknown