OSDN Git Service

ide: don't disable interrupts during kmap_atomic()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 4 May 2018 14:24:45 +0000 (16:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 20:26:47 +0000 (16:26 -0400)
commitce1e518190ea71d1ecf1a91a8b0794ba9bd78e89
tree829b73812093465b6af318d10e41d86aa328d864
parent56f0ddadcea9dc264f1c8eed6cc984071b141554
ide: don't disable interrupts during kmap_atomic()

ide_pio_bytes() 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 1ec9c5ddc17a
("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>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-taskfile.c