]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbbc5a734bc103dc46ff11daa3ba5d258e4b3ac5
tree8c2b21667f734e23721a59bd16b36277ad19648d
parent1041b441f05ef9c78c955ac9a21ce0bbfaa12e3f
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: b2e917789 ("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