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)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:20 +0000 (15:04 -0400)
commit0519c71e8d461ac3ef9a555bb7339243c9128d37
tree8c2b21667f734e23721a59bd16b36277ad19648d
parent880bcce0dcc3172fe865352b492c41d85290cb8d
dm: backfill abnormal IO support to non-splitting IO submission

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>
drivers/md/dm.c