Files
linux/drivers/block
Finn Thain d541fb2af5 block/swim3: Fix -EBUSY error when re-opening device after unmount
[ Upstream commit 296dcc40f2 ]

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.

Reported-and-tested-by: Stan Johnson <userm57@yahoo.com>
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:46:09 +01:00
..
2019-01-13 10:01:02 +01:00
2017-09-25 08:56:05 -06:00
2017-02-20 12:16:15 +01:00
2017-10-09 08:31:27 -06:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00
2018-11-13 11:14:52 -08:00