block: setup bounce bio_sets properly
authorJens Axboe <axboe@kernel.dk>
Sun, 21 Oct 2018 18:02:36 +0000 (12:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:16 +0000 (11:08 -0800)
commitcf8d0973c21123ae7f14f400b74aa89c6ff221bd
tree6e1a463b197010edc6bf5649e7b1c9288b6f09de
parentf5f578eb2392fd9acd0f8b6f183d70f0181411c7
block: setup bounce bio_sets properly

commit 52990a5fb0c991ecafebdab43138b5ed41376852 upstream.

We're only setting up the bounce bio sets if we happen
to need bouncing for regular HIGHMEM, not if we only need
it for ISA devices.

Protect the ISA bounce setup with a mutex, since it's
being invoked from driver init functions and can thus be
called in parallel.

Cc: stable@vger.kernel.org
Reported-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/bounce.c