]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fcloop: resolve warnings on RCU usage and sleep warnings
authorJames Smart <jsmart2021@gmail.com>
Thu, 20 Jun 2019 20:17:01 +0000 (13:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Jul 2019 20:16:09 +0000 (13:16 -0700)
commit967b5a41102e8348fd9b4cc76e94c37d0be50bd2
tree2f4c9b98058ca82f2fb9c7fe251e90ebbd32f9bb
parentc7cbc794b3df9c11abed2099b76d891bd9a1a37e
nvme-fcloop: resolve warnings on RCU usage and sleep warnings

With additional debugging enabled, seeing warnings for suspicious RCU
usage or Sleeping function called from invalid context.

These both map to allocation of a work structure which is currently
GFP_KERNEL, meaning it can sleep. For the RCU warning, the sequence was
sleeping while holding the RCU lock.

Convert the allocation to GFP_ATOMIC.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fcloop.c