Skip to content

Commit d3703ef

Browse files
changbindusnitm
authored andcommitted
dm crypt: use in_hardirq() instead of deprecated in_irq()
Signed-off-by: Changbin Du <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 17bfa96 commit d3703ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/md/dm-crypt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,11 +2223,11 @@ static void kcryptd_queue_crypt(struct dm_crypt_io *io)
22232223
if ((bio_data_dir(io->base_bio) == READ && test_bit(DM_CRYPT_NO_READ_WORKQUEUE, &cc->flags)) ||
22242224
(bio_data_dir(io->base_bio) == WRITE && test_bit(DM_CRYPT_NO_WRITE_WORKQUEUE, &cc->flags))) {
22252225
/*
2226-
* in_irq(): Crypto API's skcipher_walk_first() refuses to work in hard IRQ context.
2226+
* in_hardirq(): Crypto API's skcipher_walk_first() refuses to work in hard IRQ context.
22272227
* irqs_disabled(): the kernel may run some IO completion from the idle thread, but
22282228
* it is being executed with irqs disabled.
22292229
*/
2230-
if (in_irq() || irqs_disabled()) {
2230+
if (in_hardirq() || irqs_disabled()) {
22312231
tasklet_init(&io->tasklet, kcryptd_crypt_tasklet, (unsigned long)&io->work);
22322232
tasklet_schedule(&io->tasklet);
22332233
return;

0 commit comments

Comments
 (0)