linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: malahal@us.ibm.com
To: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 05 of 16] Block layer data integrity
Date: Tue, 6 May 2008 13:29:09 -0700	[thread overview]
Message-ID: <20080506202909.GA25904@us.ibm.com> (raw)
In-Reply-To: <26ccaf2ccdc5548c4c9f.1209165127@sermon.lab.mkp.net>

Martin K. Petersen [martin.petersen@oracle.com] wrote:
>  		 */
>  		blk_partition_remap(bio);
>  
> +		if (bio_integrity_enabled(bio) && bio_integrity_prep(bio))
> +			goto end_io;
> +
>  		if (old_sector != -1)
>  			blk_add_trace_remap(q, bio, old_dev, bio->bi_sector,
>  					    old_sector);

It is expected that the bio's data should NOT be changed until this I/O
is sent out to the HBA for WRITES. How do you ensure that applications
or file systems don't modify the data of a bio that is in progress?

--Malahal.

  reply	other threads:[~2008-05-06 20:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25 23:12 [PATCH 00 of 16] Block/SCSI Data Integrity Support Martin K. Petersen
2008-04-25 23:12 ` [PATCH 01 of 16] Add support for the T10 Data Integrity Field CRC Martin K. Petersen
2008-04-25 23:12 ` [PATCH 02 of 16] Globalize bio_set and bio_vec_slab Martin K. Petersen
2008-04-25 23:12 ` [PATCH 03 of 16] Find bio sector offset given idx and offset Martin K. Petersen
2008-04-25 23:12 ` [PATCH 04 of 16] Block layer data integrity Martin K. Petersen
2008-04-25 23:12 ` [PATCH 05 " Martin K. Petersen
2008-05-06 20:29   ` malahal [this message]
2008-05-07  1:56     ` Martin K. Petersen
2008-05-07  2:50       ` malahal
2008-05-07 20:22         ` Martin K. Petersen
2008-04-25 23:12 ` [PATCH 06 of 16] Detect devices with protection information turned on in INQUIRY Martin K. Petersen
2008-04-25 23:12 ` [PATCH 07 of 16] Rename scsi_bidi_sdb_cache Martin K. Petersen
2008-04-25 23:12 ` [PATCH 08 of 16] SCSI protection information scatterlist handling Martin K. Petersen
2008-04-25 23:12 ` [PATCH 09 of 16] Support for the SBC Data Integrity Field format Martin K. Petersen
2008-04-25 23:12 ` [PATCH 10 of 16] Allow sd_print_sense_hdr to be called outside of sd.c Martin K. Petersen
2008-04-25 23:12 ` [PATCH 11 of 16] Move scsi_disk() accessor function to sd.h Martin K. Petersen
2008-04-26  6:23   ` Christoph Hellwig
2008-04-26 13:01     ` Martin K. Petersen
2008-04-25 23:12 ` [PATCH 12 of 16] SCSI host driver DIF helpers Martin K. Petersen
2008-04-25 23:12 ` [PATCH 13 of 16] Support for SCSI disk (SBC) Data Integrity Field Martin K. Petersen
2008-04-25 23:12 ` [PATCH 14 of 16] Implement support for DIF in SCSI debug driver Martin K. Petersen
2008-04-25 23:12 ` [PATCH 15 of 16] Add support for data integrity to DM Martin K. Petersen
2008-04-25 23:12 ` [PATCH 16 of 16] Add support for data integrity to MD Martin K. Petersen

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=20080506202909.GA25904@us.ibm.com \
    --to=malahal@us.ibm.com \
    --cc=linux-scsi@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 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).