aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorPhillip Susi <psusi@cfl.rr.com>2011-09-21 04:02:13 -0400
committerJens Axboe <axboe@kernel.dk>2011-09-21 04:02:13 -0400
commit8a9c594422ecad912d6470888acdee9a1236ad68 (patch)
tree6f8da22845a400ec63f7f623ac26206a93812bb8 /drivers/block
parent5a3a76e6c35fa236fc234d17a98edeb41d49130f (diff)
drivers/block/loop.c: emit uevent on auto release
The loopback driver failed to emit the change uevent when auto releasing the device. Fixed lo_release() to pass the bdev to loop_clr_fd() so it can emit the event. Signed-off-by: Phillip Susi <psusi@cfl.rr.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Ayan George <ayan@ayan.net> Signed-off-by: Andrew Morton <akpm@google.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index b336433f815..c2ce03cf3a5 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1583,7 +1583,7 @@ static int lo_release(struct gendisk *disk, fmode_t mode)
1583 * In autoclear mode, stop the loop thread 1583 * In autoclear mode, stop the loop thread
1584 * and remove configuration after last close. 1584 * and remove configuration after last close.
1585 */ 1585 */
1586 err = loop_clr_fd(lo, NULL); 1586 err = loop_clr_fd(lo, lo->lo_device);
1587 if (!err) 1587 if (!err)
1588 goto out_unlocked; 1588 goto out_unlocked;
1589 } else { 1589 } else {