Use a similar but shorter condition to stop writing
Use a similar but shorter condition to stop writing

This loop also stops if the pool or extend states are in their
Initializing or Stopping states. They shouldn't ever be in those states,
but the test should stop writing if they are.

It also stops if the pool has gone into a Failed state. That is obviously
the correct thing to do, should it happen.

Signed-off-by: mulhern <7b51bcf507bcd7afb72bf8663752c0ddbeb517f6@redhat.com>

trgill/stratisd,mulkieran/stratisd,mulkieran/stratisd,stratis-storage/stratisd,trgill/stratisd,stratis-storage/stratisd,stratis-storage/stratisd