]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: Stop probing a removed device
authorKeith Busch <keith.busch@intel.com>
Tue, 11 Oct 2016 17:31:58 +0000 (13:31 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 12 Oct 2016 14:40:13 +0000 (08:40 -0600)
commit8076d8ef2c61bdb77ba44a73cad616c9354c6b26
treeb8454ff731779d4650ae0d1ce159ada606631900
parent7cc47471192f9c36503347884025779712c60fb2
nvme: Stop probing a removed device

There is no reason the nvme controller can ever return all 1's from
reading the CSTS register. This patch returns an error if we observe
that status. Without this, we may incorrectly proceed with controller
initialization and unnecessarilly rely on error handling to clean this.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c