All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Pascal Schmidt <der.eremit@email.de>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] make ide-cd handle non-2kB sector sizes
Date: Fri, 23 Jan 2004 17:18:46 +0100	[thread overview]
Message-ID: <20040123161846.GR2734@suse.de> (raw)
In-Reply-To: <200401231624.14687.bzolnier@elka.pw.edu.pl>

On Fri, Jan 23 2004, Bartlomiej Zolnierkiewicz wrote:
> On Friday 23 of January 2004 15:01, Pascal Schmidt wrote:
> > On Fri, 23 Jan 2004, Jens Axboe wrote:
> > > It's a good first start, thanks for doing this. You really want to be
> > > storing this info in the queue, though, there's a hardsector size just
> > > for this very purpose. That way other layers know about the hardware
> > > sector size as well, not just ide-cd. And you get other things right for
> > > free as well, for instance ide_cdrom_prep_fs() needs a correct hardware
> > > block size or it will build wrong cdbs.
> >
> > Hmmm. I'm doing
> >
> > 	blk_queue_hardsect_size(drive->queue, sectors_per_frame << 9);
> >
> > inside of cdrom_read_toc, is that not enough? Or do you mean that
> > I should only store it in the queue and not also in cdrom_state_flags?
> 
> I think Jens means storing it only in q->hardsect_size.  This way you
> can just use rq->q->hardsect_size << 9 to get sectors_per_frame.

Yes that's precisely what I mean, there's no need to keep the same info
in several places.

-- 
Jens Axboe


  reply	other threads:[~2004-01-23 16:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 19:23 [PATCH] make ide-cd handle non-2kB sector sizes Pascal Schmidt
2004-01-23  9:35 ` Jens Axboe
2004-01-23 14:01   ` Pascal Schmidt
2004-01-23 15:24     ` Bartlomiej Zolnierkiewicz
2004-01-23 16:18       ` Jens Axboe [this message]
2004-01-23 17:37         ` Pascal Schmidt
2004-01-23 18:50         ` Pascal Schmidt
2004-01-23 23:29           ` Pascal Schmidt
2004-01-23 23:50             ` Bartlomiej Zolnierkiewicz
2004-01-24  0:06               ` Pascal Schmidt
2004-01-24  0:57               ` Pascal Schmidt
2004-01-23 17:36       ` Pascal Schmidt
2004-01-23 15:12 ` Bartlomiej Zolnierkiewicz
2004-01-23 18:58 ` Maciej W. Rozycki
2004-01-23 19:04   ` Pascal Schmidt
2004-01-23 19:17     ` Maciej W. Rozycki
2004-01-23 19:56       ` Pascal Schmidt
2004-01-23 22:10         ` Maciej W. Rozycki

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=20040123161846.GR2734@suse.de \
    --to=axboe@suse.de \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=der.eremit@email.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.