From: Jens Axboe <jens.axboe@oracle.com>
To: petkovbb@gmail.com
Cc: Nikanth Karthikesan <knikanth@suse.de>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: ide_cd modifies hard_* members of request
Date: Tue, 18 Mar 2008 12:08:04 +0100 [thread overview]
Message-ID: <20080318110803.GV17940@kernel.dk> (raw)
In-Reply-To: <9ea470500803180405h5ede15eaqa86515058a632e2b@mail.gmail.com>
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
next prev parent reply other threads:[~2008-03-18 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 8:54 Nikanth Karthikesan
2008-03-18 11:05 ` Boris Petkov
2008-03-18 11:08 ` Jens Axboe [this message]
2008-03-18 11:22 ` Boris Petkov
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=20080318110803.GV17940@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=bzolnier@gmail.com \
--cc=knikanth@suse.de \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.com \
/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
all inboxes | Powered by JetHome®