public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Osterlund <petero2@telia.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.8-rc2-mm1
Date: 28 Jul 2004 21:37:21 +0200	[thread overview]
Message-ID: <m3pt6fudn2.fsf@telia.com> (raw)
In-Reply-To: <20040728020444.4dca7e23.akpm@osdl.org>

Andrew Morton <akpm@osdl.org> writes:

> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.8-rc2/2.6.8-rc2-mm1/
[...]
> Changes since 2.6.8-rc1-mm1:
[...]
> +control-pktcdvd-with-an-auxiliary-character-device.patch
> +control-pktcdvd-with-an-auxiliary-character-device-fix.patch
> 
>  CDRW/DVDRW packet writing updates

The control-pktcdvd-with-an-auxiliary-character-device patch
introduced a door locking bug.

    pktsetup, mount, umount -> door remains locked.

The problem is that pktsetup opens the cdrom device in non-blocking
mode, which doesn't lock the door. mount then opens the cdrom device
again in blocking mode, which does lock the door. umount closes the
blocking mode open, but the door remains locked, because
cdrom.c:cdrom_release() only unlocks the door on the last release, it
doesn't care that the only remaining open is non-blocking.

Signed-off-by: Peter Osterlund <petero2@telia.com>
---

 linux-petero/drivers/block/pktcdvd.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN drivers/block/pktcdvd.c~packet-door-unlock drivers/block/pktcdvd.c
--- linux/drivers/block/pktcdvd.c~packet-door-unlock	2004-07-26 17:36:21.425126472 +0200
+++ linux-petero/drivers/block/pktcdvd.c	2004-07-26 17:36:21.442123888 +0200
@@ -1981,6 +1981,8 @@ static void pkt_release_dev(struct pktcd
 	if (flush && pkt_flush_cache(pd))
 		DPRINTK("pktcdvd: %s not flushing cache\n", pd->name);
 
+	pkt_lock_door(pd, 0);
+
 	q = bdev_get_queue(pd->bdev);
 	pkt_set_speed(pd, 0xffff, 0xffff);
 	spin_lock_irq(q->queue_lock);
_

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340

  parent reply	other threads:[~2004-07-28 19:37 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-28  9:04 2.6.8-rc2-mm1 Andrew Morton
2004-07-28 16:36 ` 2.6.8-rc2-mm1 Jesse Barnes
2004-07-28 17:08 ` 2.6.8-rc2-mm1 (compile stats) John Cherry
2004-07-28 19:37 ` Peter Osterlund [this message]
2004-07-28 22:24 ` 2.6.8-rc2-mm1 Johannes Stezenbach
2004-07-28 22:44   ` 2.6.8-rc2-mm1 viro
2004-07-28 23:24     ` 2.6.8-rc2-mm1 Johannes Stezenbach
2004-07-28 23:34       ` 2.6.8-rc2-mm1 Andrew Morton
2004-07-29  0:08         ` 2.6.8-rc2-mm1 Johannes Stezenbach
2004-07-29  6:42           ` 2.6.8-rc2-mm1 Andrew Morton
2004-07-29 19:35       ` 2.6.8-rc2-mm1 Michael Hunold
2004-07-29 21:02         ` 2.6.8-rc2-mm1 Andrew Morton
2004-07-28 22:49 ` 2.6.8-rc2-mm1 Adam Kropelin
2004-07-28 23:20   ` 2.6.8-rc2-mm1 Andrew Morton
2004-07-28 23:13 ` 2.6.8-rc2-mm1 Paul Jackson
2004-07-29 14:36 ` 2.6.8-rc2-mm1 Adrian Bunk
2004-07-29 19:36   ` 2.6.8-rc2-mm1 David Woodhouse
2004-07-29 14:41 ` 2.6.8-rc2-mm1: NTFS compile error with gcc 2.95 Adrian Bunk
2004-07-29 15:54   ` Jan-Benedict Glaw
2004-07-29 20:42     ` [patch] " Adrian Bunk
     [not found]       ` <Pine.LNX.4.60.0407292249120.25661@hermes-1.csi.cam.ac.uk>
2004-07-29 23:18         ` Adrian Bunk
2004-07-29 21:27 ` 2.6.8-rc2-mm1: DVB: "errno" undefined Adrian Bunk
2004-07-29 22:44   ` Kenneth Aafløy
2004-07-29 23:24     ` Adrian Bunk
2004-07-30 14:30       ` Arnd Bergmann
2004-07-31 10:09 ` 2.6.8-rc2-mm1 breaks PPPoE for me (was: 2.6.8-rc2-mm1) Matthias Andree
2004-07-31 16:39 ` 2.6.8-rc2-mm1 Zwane Mwaikambo
2004-07-31 18:47   ` 2.6.8-rc2-mm1 Andrew Morton
2004-07-31 19:54     ` 2.6.8-rc2-mm1 Zwane Mwaikambo
2004-07-31 20:09       ` 2.6.8-rc2-mm1 Zwane Mwaikambo
2004-07-31 20:21         ` 2.6.8-rc2-mm1 Andrew Morton
2004-08-01  4:21           ` 2.6.8-rc2-mm1 Zwane Mwaikambo
2004-08-01 11:16           ` 2.6.8-rc2-mm1 Ingo Molnar
2004-08-01 11:05     ` 2.6.8-rc2-mm1 Ingo Molnar
2004-08-01  2:36 ` 2.6.8-rc2-mm1 William Lee Irwin III
2004-08-01  8:05   ` 2.6.8-rc2-mm1 Andrew Morton
2004-08-01 12:33     ` 2.6.8-rc2-mm1 William Lee Irwin III
2004-08-01 21:11       ` 2.6.8-rc2-mm1 Sam Ravnborg
2004-08-01 23:57         ` 2.6.8-rc2-mm1 William Lee Irwin III
2004-08-03 20:46           ` 2.6.8-rc2-mm1 Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3pt6fudn2.fsf@telia.com \
    --to=petero2@telia.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox