block: copy ioprio in __bio_clone_fast() and bounce
authorHannes Reinecke <hare@suse.com>
Mon, 12 Nov 2018 17:35:25 +0000 (10:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:32 +0000 (09:37 +0100)
commit487d58a9c3e5b2357b8bef6461ae228ad8e73f83
treebc8b75a95dd3cee604d8c67daced1cff5467b207
parent08f94d0628c361937d463061cef8d0b9b0a1c718
block: copy ioprio in __bio_clone_fast() and bounce

[ Upstream commit ca474b73896bf6e0c1eb8787eb217b0f80221610 ]

We need to copy the io priority, too; otherwise the clone will run
with a different priority than the original one.

Fixes: 43b62ce3ff0a ("block: move bio io prio to a new field")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixed up subject, and ordered stores.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/bio.c
block/bounce.c