Re: [PATCH] block/swim3: Fix -EBUSY error when re-opening device after unmount

From: Jens Axboe
Date: Mon Dec 31 2018 - 12:20:23 EST


On 12/30/18 10:44 PM, Finn Thain wrote:
> When the block device is opened with FMODE_EXCL, ref_count is set to -1.
> This value doesn't get reset when the device is closed which means the
> device cannot be opened again. Fix this by checking for refcount <= 0
> in the release method.

Applied, thanks.


--
Jens Axboe