Skip to content

Commit 0f48f26

Browse files
committed
block: fix mismerge of the DISK_EVENT_MEDIA_CHANGE removal
Jens' back-merge commit 698567f ("Merge commit 'v2.6.39' into for-2.6.40/core") was incorrectly done, and re-introduced the DISK_EVENT_MEDIA_CHANGE lines that had been removed earlier in commits - 9fd097b ("block: unexport DISK_EVENT_MEDIA_CHANGE for legacy/fringe drivers") - 7eec77a ("ide: unexport DISK_EVENT_MEDIA_CHANGE for ide-gd and ide-cd") because of conflicts with the "g->flags" updates near-by by commit d4dc210 ("block: don't block events on excl write for non-optical devices") As a result, we re-introduced the hanging behavior due to infinite disk media change reports. Tssk, tssk, people! Don't do back-merges at all, and *definitely* don't do them to hide merge conflicts from me - especially as I'm likely better at merging them than you are, since I do so many merges. Reported-by: Steven Rostedt <rostedt@goodmis.org> Cc: Jens Axboe <jaxboe@fusionio.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3f30310 commit 0f48f26

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

drivers/block/paride/pcd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ static void pcd_init_units(void)
321321
strcpy(disk->disk_name, cd->name); /* umm... */
322322
disk->fops = &pcd_bdops;
323323
disk->flags = GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE;
324-
disk->events = DISK_EVENT_MEDIA_CHANGE;
325324
}
326325
}
327326

drivers/cdrom/viocd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ static int viocd_probe(struct vio_dev *vdev, const struct vio_device_id *id)
627627
gendisk->fops = &viocd_fops;
628628
gendisk->flags = GENHD_FL_CD | GENHD_FL_REMOVABLE |
629629
GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE;
630-
gendisk->events = DISK_EVENT_MEDIA_CHANGE;
631630
set_capacity(gendisk, 0);
632631
gendisk->private_data = d;
633632
d->viocd_disk = gendisk;

drivers/ide/ide-cd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,6 @@ static int ide_cd_probe(ide_drive_t *drive)
17821782
ide_cd_read_toc(drive, &sense);
17831783
g->fops = &idecd_ops;
17841784
g->flags |= GENHD_FL_REMOVABLE | GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE;
1785-
g->events = DISK_EVENT_MEDIA_CHANGE;
17861785
add_disk(g);
17871786
return 0;
17881787

0 commit comments

Comments
 (0)