lkml.org 
[lkml]   [2005]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [2.6.13] pktcdvd: IO-errors
From
Date
Guennadi Liakhovetski <g.liakhovetski@gmx.de> writes:

> On Sun, 2 Oct 2005, Peter Osterlund wrote:
>
> > OK, in that case this patch for 2.6.12 should work as well, because
> > all it does compared to the previous patch is to remove the now unused
> > high_prio_read variables. Can you confirm that it works?
>
> Yes, it does.

In that case, this patch should also work. Does it?

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index d4b9c17..cb6bda9 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -538,7 +538,7 @@ static void pkt_iosched_process_queue(st
spin_unlock(&pd->iosched.lock);
if (bio && (bio->bi_sector == pd->iosched.last_write))
need_write_seek = 0;
- if (need_write_seek && reads_queued) {
+ if (!writes_queued && reads_queued) {
if (atomic_read(&pd->cdrw.pending_bios) > 0) {
VPRINTK("pktcdvd: write, waiting\n");
break;
--
Peter Osterlund - petero2@telia.com
http://web.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-09 23:59    [W:0.130 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site