From: Changbin Du Date: Sat, 14 Aug 2021 01:09:09 +0000 (+0800) Subject: dm crypt: use in_hardirq() instead of deprecated in_irq() X-Git-Tag: v5.15~432^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3703ef331297b6daa97f5228cbe2a657d0cfd21;p=platform%2Fkernel%2Flinux-starfive.git dm crypt: use in_hardirq() instead of deprecated in_irq() Signed-off-by: Changbin Du Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 9d15872..916b7da 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -2223,11 +2223,11 @@ static void kcryptd_queue_crypt(struct dm_crypt_io *io) if ((bio_data_dir(io->base_bio) == READ && test_bit(DM_CRYPT_NO_READ_WORKQUEUE, &cc->flags)) || (bio_data_dir(io->base_bio) == WRITE && test_bit(DM_CRYPT_NO_WRITE_WORKQUEUE, &cc->flags))) { /* - * in_irq(): Crypto API's skcipher_walk_first() refuses to work in hard IRQ context. + * in_hardirq(): Crypto API's skcipher_walk_first() refuses to work in hard IRQ context. * irqs_disabled(): the kernel may run some IO completion from the idle thread, but * it is being executed with irqs disabled. */ - if (in_irq() || irqs_disabled()) { + if (in_hardirq() || irqs_disabled()) { tasklet_init(&io->tasklet, kcryptd_crypt_tasklet, (unsigned long)&io->work); tasklet_schedule(&io->tasklet); return;