mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ide_cd modifies hard_* members of request
@ 2008-03-18  8:54 Nikanth Karthikesan
  2008-03-18 11:05 ` Boris Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Nikanth Karthikesan @ 2008-03-18  8:54 UTC (permalink / raw)
  To: Jens Axboe, Bartlomiej Zolnierkiewicz, Borislav Petkov
  Cc: linux-kernel, linux-ide

Hi

Despite the warning in blkdev.h, that members of struct request starting
with hard_* are block layer internals, and no driver should touch them,
the ide_cd driver seems to fiddle around with it.

Is this reqd, or can this be made to work without the need for this?

If this reqd, why not provide a helper function for that in block layer
itself, may be, with a warning about usage?

Thanks
Nikanth Karthikesan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ide_cd modifies hard_* members of request
  2008-03-18  8:54 ide_cd modifies hard_* members of request Nikanth Karthikesan
@ 2008-03-18 11:05 ` Boris Petkov
  2008-03-18 11:08   ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Boris Petkov @ 2008-03-18 11:05 UTC (permalink / raw)
  To: Nikanth Karthikesan
  Cc: Jens Axboe, Bartlomiej Zolnierkiewicz, linux-kernel, linux-ide

(sorry, forgot to cc all)

On Tue, Mar 18, 2008 at 9:54 AM, Nikanth Karthikesan <knikanth@suse.de> wrote:
> Hi
>
>  Despite the warning in blkdev.h, that members of struct request starting
>  with hard_* are block layer internals, and no driver should touch them,
>  the ide_cd driver seems to fiddle around with it.
>
>  Is this reqd, or can this be made to work without the need for this?
>
>  If this reqd, why not provide a helper function for that in block layer
>  itself, may be, with a warning about usage?
>
>  Thanks
>  Nikanth Karthikesan

Hi,

the code pieces you're referring to are in there since at least the
first git import of the kernel source (i.e. 2005) aka long time so
Bart/Jens should know that...


-- 
Regards/Gruß,
Boris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ide_cd modifies hard_* members of request
  2008-03-18 11:05 ` Boris Petkov
@ 2008-03-18 11:08   ` Jens Axboe
  2008-03-18 11:22     ` Boris Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2008-03-18 11:08 UTC (permalink / raw)
  To: petkovbb
  Cc: Nikanth Karthikesan, Bartlomiej Zolnierkiewicz, linux-kernel, linux-ide

On Tue, Mar 18 2008, Boris Petkov wrote:
> (sorry, forgot to cc all)
> 
> On Tue, Mar 18, 2008 at 9:54 AM, Nikanth Karthikesan <knikanth@suse.de> wrote:
> > Hi
> >
> >  Despite the warning in blkdev.h, that members of struct request starting
> >  with hard_* are block layer internals, and no driver should touch them,
> >  the ide_cd driver seems to fiddle around with it.
> >
> >  Is this reqd, or can this be made to work without the need for this?
> >
> >  If this reqd, why not provide a helper function for that in block layer
> >  itself, may be, with a warning about usage?
> >
> >  Thanks
> >  Nikanth Karthikesan
> 
> Hi,
> 
> the code pieces you're referring to are in there since at least the
> first git import of the kernel source (i.e. 2005) aka long time so
> Bart/Jens should know that...

restore_request(), I'm assuming. It was probably me who modified this
code, I don't think there's any justification for it. I would suggest
killing it. And cdrom_read_from_buffer() as well, it's a silly addition.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ide_cd modifies hard_* members of request
  2008-03-18 11:08   ` Jens Axboe
@ 2008-03-18 11:22     ` Boris Petkov
  0 siblings, 0 replies; 4+ messages in thread
From: Boris Petkov @ 2008-03-18 11:22 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Nikanth Karthikesan, Bartlomiej Zolnierkiewicz, linux-kernel, linux-ide

On Tue, Mar 18, 2008 at 12:08 PM, Jens Axboe <jens.axboe@oracle.com> wrote:
>
> On Tue, Mar 18 2008, Boris Petkov wrote:
>  > (sorry, forgot to cc all)
>  >
>  > On Tue, Mar 18, 2008 at 9:54 AM, Nikanth Karthikesan <knikanth@suse.de> wrote:
>  > > Hi
>  > >
>  > >  Despite the warning in blkdev.h, that members of struct request starting
>  > >  with hard_* are block layer internals, and no driver should touch them,
>  > >  the ide_cd driver seems to fiddle around with it.
>  > >
>  > >  Is this reqd, or can this be made to work without the need for this?
>  > >
>  > >  If this reqd, why not provide a helper function for that in block layer
>  > >  itself, may be, with a warning about usage?
>  > >
>  > >  Thanks
>  > >  Nikanth Karthikesan
>  >
>  > Hi,
>  >
>  > the code pieces you're referring to are in there since at least the
>  > first git import of the kernel source (i.e. 2005) aka long time so
>  > Bart/Jens should know that...
>
>  restore_request(), I'm assuming. It was probably me who modified this
>  code, I don't think there's any justification for it. I would suggest
>  killing it.

I'll conjure up something later wrt above.

> And cdrom_read_from_buffer() as well, it's a silly addition.

This one is already gone, however the patch is still in Bart's tree
for -mm testing:
ftp://ftp.fi.kernel.org/pub/linux/kernel/people/bart/pata-2.6/patches/ide-cd-remove-the-internal-64k-buffer.patch

>
>  --
>  Jens Axboe
>
>



-- 
Regards/Gruß,
Boris

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-18 11:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18  8:54 ide_cd modifies hard_* members of request Nikanth Karthikesan
2008-03-18 11:05 ` Boris Petkov
2008-03-18 11:08   ` Jens Axboe
2008-03-18 11:22     ` Boris Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®