Files
linux/drivers/block
Finn Thain 296dcc40f2 block/swim3: Fix -EBUSY error when re-opening device after unmount
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>
2018-12-31 10:19:15 -07:00
..
2018-12-16 09:01:38 -07:00
2018-10-17 09:42:30 -06:00
2018-12-22 14:45:31 -07:00
2018-10-17 09:42:30 -06:00
2018-10-15 20:07:56 -06:00
2018-11-10 08:03:47 -07:00
2017-08-18 08:45:29 -06:00
2018-12-22 14:45:33 -07:00
2018-10-16 09:49:18 -06:00
2018-11-09 08:14:14 -07:00
2018-10-15 20:08:24 -06:00