]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: flush scan work on passthrough commands
authorKeith Busch <kbusch@kernel.org>
Wed, 29 Apr 2020 20:31:23 +0000 (05:31 +0900)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:36 +0000 (16:18 -0600)
commit61b1cfd51ec2fd11284c0ed24d2888caef9bbc95
treefef8087e54d469ae078612385e136271d9509f07
parent81b4e493bf34aca1b5aef9dfc7fef2b19b6a9b91
nvme: flush scan work on passthrough commands

If a passthrough command causes the namespace inventory or capabilities
to change, flush the scan work that handles these changes so the driver
synchronizes with the user command's effects before returning the result
to user space.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c