On 08/18/2016 08:46 PM, David Sterba wrote:
On Fri, Jul 22, 2016 at 06:04:53AM +0800, Anand Jain wrote:
From: Anand Jain <[email protected]>

At the end of unmount/dev-delete, if the device exclusive open is not
actually closed, then there might be a race with another program in
the userland who is trying to open the device in exclusive mode and
it may fail for eg:
      unmount /btrfs; fsck /dev/x
      btrfs dev del /dev/x /btrfs; fsck /dev/x
so here background blkdev_put() is not a choice

missing signed-off, I'll add it

Err.

Reviewed-by: David Sterba <[email protected]>

Thanks, Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to