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

Jens Axboe axboe at kernel.dk
Tue Jan 1 04:20:18 AEDT 2019


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



More information about the Linuxppc-dev mailing list