dm: update dm_process_bio() to split bio if in ->make_request_fn()
authorMike Snitzer <snitzer@redhat.com>
Fri, 18 Jan 2019 19:10:37 +0000 (14:10 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 19 Feb 2019 17:25:00 +0000 (12:25 -0500)
commit568c73a355e0b845dc983aa59c8a8dc69294b275
treeef4d51e21e1bfb71bf024e4cbe629fcde96daafb
parent4ae280b4ee3463fa57bbe6eede26b97daff8a0f1
dm: update dm_process_bio() to split bio if in ->make_request_fn()

Must call blk_queue_split() otherwise queue_limits for abnormal requests
(e.g. discard, writesame, etc) won't be imposed.

In addition, add dm_queue_split() to simplify DM specific splitting that
is needed for targets that impose ti->max_io_len.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c