]> www.infradead.org Git - users/sagi/libnvme.git/commit
tree: only open controller device node if required
authorHannes Reinecke <hare@suse.de>
Fri, 21 Jan 2022 11:53:51 +0000 (12:53 +0100)
committerHannes Reinecke <hare@suse.de>
Fri, 21 Jan 2022 11:53:51 +0000 (12:53 +0100)
commit3c9fa45f3d7838fcbe5db8f8847995ac6fa7613f
treec811e4d97c5d7414fbc6de80b6ec8af0b41ca224
parent53ab58cec43fbe310c4fdfd988666bb98f40eab7
tree: only open controller device node if required

Opening the controller device will fail if the controller is resetting,
so trying to open it during controller initialisation will fail, and
the controller will not displayed correctly.
So only try to open the controller device if required, allowing the
initialisation to continue.

Signed-off-by: Hannes Reinecke <hare@suse.de>
src/nvme/tree.c