]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite459859669d23f4e13085a9a7a87910a68316def
tree603bf219be3f540c2d0b7e0b43d3a16fe8991c78
parent8a03eb552948ecd5e4368c835639d4e93e740efb
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