In the Linux kernel, the following vulnerability has been resolved: blk-mq: quiesce a queue that joins a quiesced tag set blk_mq_quiesce_tagset() only quiesces the queues on the list at that moment. A queue added before blk_mq_unquiesce_tagset() runs unquiesced, and then gets unquiesced without ever having been quiesced, which trips the warning in blk_mq_unquiesce_queue(). NVMe gets there when a controller fails while its namespaces are being scanned. Count the quiesce calls in the tag set and quiesce a joining queue that many times, under a spinlock that also serializes the two functions. It can't be tag_list_lock, see commit 59e25ef2b413.
https://git.kernel.org/stable/c/d5b692b20b48c5197ae43f8090d75b4a6df08779
https://git.kernel.org/stable/c/976624ef436222a0024c7e70596beb17f2ddee58
https://git.kernel.org/stable/c/71ec3c7d6db80737b781d2739d1325b7e39758e1
https://git.kernel.org/stable/c/713076f1466c7c3c6fb698e3188aec34cd5e3326
https://git.kernel.org/stable/c/6a845ca6db13dba90e1938b4abaac72d4f298782