]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
dm mpath: return DM_MAPIO_REQUEUE on blk-mq rq allocation failure
authorMing Lei <ming.lei@redhat.com>
Thu, 11 Jan 2018 06:01:56 +0000 (14:01 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 17:44:25 +0000 (13:44 -0400)
commit494066576f6e8e11f69c6f68d62575d71016b9bf
tree46ec4d74bb1ceb23e3c6c77f1c24a2184f117c9a
parent0f2803472abf59b6e1771474db2300e5666a6000
dm mpath: return DM_MAPIO_REQUEUE on blk-mq rq allocation failure

BugLink: http://bugs.launchpad.net/bugs/1774063
[ Upstream commit 050af08ffb1b62af69196d61c22a0755f9a3cdbd ]

blk-mq will rerun queue via RESTART or dispatch wake after one request
is completed, so not necessary to wait random time for requeuing, we
should trust blk-mq to do it.

More importantly, we need to return BLK_STS_RESOURCE to blk-mq so that
dequeuing from the I/O scheduler can be stopped, this results in
improved I/O merging.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/md/dm-mpath.c