Files
linux/drivers
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-29 08:20:44 -07:00
2018-10-16 11:13:50 +02:00
2018-10-11 12:12:55 +02:00
2018-12-19 09:13:34 -07:00
2018-12-02 20:55:23 -08:00
2018-10-31 08:54:16 -07:00
2018-11-30 14:48:04 -07:00
2018-10-11 09:16:44 -07:00
2018-11-11 09:21:46 -08:00