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)
commita536b49785759bf99465fdf6e248d34322123fcd
tree530e42e14e8bc687563cd3f9743026eaa58fecd5
parent02db99548d3608a625cf481cff2bb7b626829b3f
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