nvme: centralize ctrl removal prints
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 11 Mar 2018 15:46:06 +0000 (17:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2018 14:53:43 +0000 (08:53 -0600)
commit77d0612da0e61cb2903ecd0be02444e4c958c672
treeec69afab3739eac563a0be6e79bd3332b799250a
parent97c122233f73e91ceed5038e6e59fc5009305f7e
nvme: centralize ctrl removal prints

nvme_delete_ctrl can be called from various contexts in parallel,
and cause duplicated information prints, even though the specific
context doesn't perform the actual removal. Instead, print the
information when the actual removal occurs.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c
drivers/nvme/host/rdma.c