]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: fix error flow during ns enable
authorMax Gurtovoy <maxg@mellanox.com>
Thu, 28 Mar 2019 10:54:03 +0000 (12:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 28 Mar 2019 17:15:03 +0000 (18:15 +0100)
commit8ab8f34b59d0b63f88d089e1cba08af3ba73eb9c
tree530e42e14e8bc687563cd3f9743026eaa58fecd5
parentc5783c8baa5daac1a3d9176fd221682f757fd2f6
nvmet: fix error flow during ns enable

In case we fail to enable p2pmem on the current namespace, disable the
backing store device before exiting.

Cc: Stephen Bates <sbates@raithlin.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/core.c