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:12:11 +0000 (11:12 -0800)
commit9acb7e6aa615850af7b320a0378989ee64eb017a
tree53616bf39dbf82ba30a5b21a2293233677b3b481
parent22315bd1693b3c29abc065dcf6c1a10310fa9f7b
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