linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Anuj Goel <talk2anuj@gmail.com>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: doubt in chunk_aligned_read()
Date: Thu, 5 Apr 2012 11:38:00 +1000	[thread overview]
Message-ID: <20120405113800.4a1da21e@notabene.brown> (raw)
In-Reply-To: <CANSbrrp_LByxog3q265ruHxJxxJRhE2SfvPgzx8EK4FyL-7KOg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

On Wed, 4 Apr 2012 21:25:53 -0400 Anuj Goel <talk2anuj@gmail.com> wrote:

> HI Guys,
> 
> Why is the below call needed in the function  chunk_aligned_read()
> 
> 	align_bi = bio_clone_mddev(raid_bio, GFP_NOIO, mddev);
> 
> Why do we need to create a clone of the bio passed to
> chunk_aligned_read(mddev_t *mddev, struct bio * raid_bio) ??

Think about what happens if the read fails.

NeilBrown


> 
> --
> Best Regards,
> Anuj Goel
> Experimental Computer Science Lab
> Stony Brook University.
> Cell: +1-801-209-5873
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2012-04-05  1:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-05  1:25 doubt in chunk_aligned_read() Anuj Goel
2012-04-05  1:38 ` NeilBrown [this message]
2012-04-05  1:56   ` Anuj Goel
2012-04-08 19:47   ` Anuj Goel
2012-04-08 23:29     ` NeilBrown

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=20120405113800.4a1da21e@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=talk2anuj@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;
as well as URLs for NNTP newsgroup(s).