]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't disable interrupts during kmap_atomic()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 4 May 2018 14:32:45 +0000 (16:32 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 May 2018 21:26:36 +0000 (15:26 -0600)
commit957db6e5ef058616a0017fdbfb72a76035f8435f
tree2863a95901ab2e0677373ef5b62ecde51b05d32b
parentaab853d774905ddfb8dd4a60d86cc6fe80ddcd5d
block: don't disable interrupts during kmap_atomic()

bounce_copy_vec() disables interrupts around kmap_atomic(). This is a
leftover from the old kmap_atomic() implementation which relied on fixed
mapping slots, so the caller had to make sure that the same slot could not
be reused from an interrupting context.

kmap_atomic() was changed to dynamic slots long ago and commit 555a763b338f
("include/linux/highmem.h: remove the second argument of k[un]map_atomic()")
removed the slot assignements, but the callers were not checked for now
redundant interrupt disabling.

Remove the conditional interrupt disable.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bounce.c