Re: [PATCH v3 2/2] nbd: add comments about double lock for config_lock confusion
On 11/3/20 1:51 AM, firstname.lastname@example.org wrote:
From: Xiubo Li <email@example.com>
When calling the ioctl(), fget() will be called on this fd, and
nbd_release() is only called when the fd's refcount drops to zero.
With this we can make sure that the nbd_release() won't be called
before the ioctl() finished.
So there won't have the double lock issue for the "config_lock",
which has already been held by nbd_ioctl().
Reviewed-by: Ming Lei <firstname.lastname@example.org>
Signed-off-by: Xiubo Li <email@example.com>
Reviewed-by: Josef Bacik <firstname.lastname@example.org>