block: setup bounce bio_sets properly
authorJens Axboe <axboe@kernel.dk>
Sun, 21 Oct 2018 18:02:36 +0000 (12:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 21 Oct 2018 18:05:43 +0000 (12:05 -0600)
commit52990a5fb0c991ecafebdab43138b5ed41376852
tree603bf219be3f540c2d0b7e0b43d3a16fe8991c78
parentd459d853c2edc793135e4bfa4e345c758f1cc859
block: setup bounce bio_sets properly

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>
block/bounce.c