mtip32xx: fix bad use of smp_processor_id()
authorJens Axboe <axboe@fb.com>
Mon, 10 Mar 2014 20:29:37 +0000 (14:29 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:51 +0000 (12:54 -0600)
commitb42b783004c92c61e7fb063cf75f00c73d589ded
tree6946af368a1ca7fe534f5a62ac9f17e18ec41f64
parent6c34b5693ed97fd618856ec64bc5f0960d092c36
mtip32xx: fix bad use of smp_processor_id()

mtip_pci_probe() dumps the current CPU when loaded, but it does
so in a preemptible context. Hence smp_processor_id() correctly
warns:

BUG: using smp_processor_id() in preemptible [00000000] code: systemd-udevd/155
caller is mtip_pci_probe+0x53/0x880 [mtip32xx]

Switch to raw_smp_processor_id(), since it's just informational
and persistent accuracy isn't important.

Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c