dm: backfill abnormal IO support to non-splitting IO submission
authorMike Snitzer <snitzer@redhat.com>
Mon, 26 Mar 2018 15:49:16 +0000 (11:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:42:59 +0000 (09:42 +0200)
commitaa2a38b37f524a6256e3deb665a3e0045f8d968e
tree4febf424962bfd90cf1778239d514efed61149a6
parent919e7c8da185a2d8d4430a56077b9b2475e2c990
dm: backfill abnormal IO support to non-splitting IO submission

commit 0519c71e8d461ac3ef9a555bb7339243c9128d37 upstream.

Otherwise, these abnormal IOs would be sent to the DM target
regardless of whether the target advertised support for them.

Factor out __process_abnormal_io() from __split_and_process_non_flush()
so that discards, write same, etc may be conditionally processed.

Fixes: 978e51ba3 ("dm: optimize bio-based NVMe IO submission")
Cc: stable@vger.kernel.org # 4.16
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm.c