diff options
author | Dmitry Fomichev <dmitry.fomichev@wdc.com> | 2019-08-10 14:43:11 -0700 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-08-15 15:57:42 -0400 |
commit | 75d66ffb48efb30f2dd42f041ba8b39c5b2bd115 (patch) | |
tree | b0fa4e0bb31dff25d707243ce74e4cfab7c6a1d4 /drivers/ntb/Makefile | |
parent | d7428c50118e739e672656c28d2b26b09375d4e0 (diff) | |
download | linux-75d66ffb48efb30f2dd42f041ba8b39c5b2bd115.tar.bz2 |
dm zoned: properly handle backing device failure
dm-zoned is observed to lock up or livelock in case of hardware
failure or some misconfiguration of the backing zoned device.
This patch adds a new dm-zoned target function that checks the status of
the backing device. If the request queue of the backing device is found
to be in dying state or the SCSI backing device enters offline state,
the health check code sets a dm-zoned target flag prompting all further
incoming I/O to be rejected. In order to detect backing device failures
timely, this new function is called in the request mapping path, at the
beginning of every reclaim run and before performing any metadata I/O.
The proper way out of this situation is to do
dmsetup remove <dm-zoned target>
and recreate the target when the problem with the backing device
is resolved.
Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/ntb/Makefile')
0 files changed, 0 insertions, 0 deletions