Re: [PATCH] nvme: fix the suspicious RCU usage warning in nvme_mpath_clear_current_path

From: Christoph Hellwig
Date: Wed Apr 18 2018 - 06:18:42 EST


On Wed, Apr 18, 2018 at 03:32:47PM +0800, Jianchao Wang wrote:
> With lockdep enabled, when trigger nvme_remove, suspicious RCU
> usage warning will be printed out.
> Fix it with adding srcu_read_lock/unlock in it.

Looks fine,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>