]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-fc: Fix a missed _irqsave version of spin_lock in 'nvmet_fc_fod_op_done()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 21 Aug 2020 07:58:19 +0000 (09:58 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 28 Aug 2020 23:43:57 +0000 (16:43 -0700)
commitd2ba192ebb7f2c9610d7ed2fb8c99d02df8e08c3
treebeef2136a6f11764baba0d8c63a6b961a7a492c3
parent15c3b5e431c8ff2bf604f94d8cb28acf15148f73
nvmet-fc: Fix a missed _irqsave version of spin_lock in 'nvmet_fc_fod_op_done()'

The way 'spin_lock()' and 'spin_lock_irqsave()' are used is not consistent
in this function.

Use 'spin_lock_irqsave()' also here, as there is no guarantee that
interruptions are disabled at that point, according to surrounding code.

Fixes: e622efa7d837 ("nvmet_fc: Rework target side abort handling")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/fc.c