[PATCH blktests 2/2] blktests: add Ming Lei's scsi-stress-remove

2018-12-20 Thread Dennis Zhou
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

Re: [PATCH blktests 2/2] blktests: add Ming Lei's scsi-stress-remove

2018-12-13 Thread Dennis Zhou
On Thu, Dec 13, 2018 at 09:24:09AM +0800, Ming Lei wrote: > On Wed, Dec 12, 2018 at 06:09:59PM -0500, Dennis Zhou wrote: > > This test exposed a race condition with shutting down a request_queue > > and the new blkg association. The issue ended up being that while the > > request_queue will just st

Re: [PATCH blktests 2/2] blktests: add Ming Lei's scsi-stress-remove

2018-12-12 Thread Ming Lei
On Wed, Dec 12, 2018 at 06:09:59PM -0500, Dennis Zhou wrote: > This test exposed a race condition with shutting down a request_queue > and the new blkg association. The issue ended up being that while the > request_queue will just start failing requests, blkg destruction sets > the q->root_blkg to

[PATCH blktests 2/2] blktests: add Ming Lei's scsi-stress-remove

2018-12-12 Thread Dennis Zhou
This test exposed a race condition with shutting down a request_queue and the new blkg association. 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 when trying to reference it. So to help prev