]> www.infradead.org Git - users/hch/blktests.git/commit
blktests: add Ming Lei's scsi-stress-remove
authorDennis Zhou <dennis@kernel.org>
Thu, 20 Dec 2018 18:18:26 +0000 (12:18 -0600)
committerOmar Sandoval <osandov@fb.com>
Thu, 20 Dec 2018 23:54:07 +0000 (15:54 -0800)
commit758bf870e9a11c7b214548742b037656ba39d5ac
treebc4b539c939cdbf1d2c6e6efc592b3292c27ef29
parentae6f116eb1f20af9235765b7fd3464ed95420781
blktests: add Ming Lei's scsi-stress-remove

This test exposed a race condiiton when shutting down a request_queue
with active IO against it and blkg association for the IOs [1]. The
issue ended up being that while the request_queue will just start
failing requests, blkg destruction sets the q->root_blkg to %NULL. This
caused a NPE. This was fixed in [2].

So to help prevent this from happening again, integrate Ming's test into
blktests so that it can more easily be ran. Here I've ported it to fit
better into the blktests framework.

[1] https://lore.kernel.org/lkml/20181205171039.73066-1-dennis@kernel.org/
[2] https://lore.kernel.org/lkml/20181211230308.66276-1-dennis@kernel.org/

Signed-off-by: Dennis Zhou <dennis@kernel.org>
Cc: Ming Lei <ming.lei@redhat.com>
tests/block/027 [new file with mode: 0755]
tests/block/027.out [new file with mode: 0644]