kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] [SCSI] sd: set BIO_MAPPED_INTEGRITY bit correctly in sd_dif_prepare()
@ 2012-03-07 17:12 santosh nayak
  2012-03-07 17:28 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: santosh nayak @ 2012-03-07 17:12 UTC (permalink / raw)
  To: JBottomley
  Cc: matthew, linux-scsi, linux-kernel, kernel-janitors, Santosh Nayak

From: Santosh Nayak <santoshprasadnayak@gmail.com>

Value of BIO_MAPPED_INTEGRITY is 11. Intention was to set the 11th bit.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
---
 drivers/scsi/sd_dif.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c
index e981d97..8fdaf42 100644
--- a/drivers/scsi/sd_dif.c
+++ b/drivers/scsi/sd_dif.c
@@ -408,7 +408,7 @@ int sd_dif_prepare(struct request *rq, sector_t hw_sector, unsigned int sector_s
 			kunmap_atomic(sdt);
 		}
 
-		bio->bi_flags |= BIO_MAPPED_INTEGRITY;
+		__set_bit(BIO_MAPPED_INTEGRITY, &bio->bi_flags);
 	}
 
 	return 0;
-- 
1.7.4.4


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

* Re: [PATCH v2] [SCSI] sd: set BIO_MAPPED_INTEGRITY bit correctly in sd_dif_prepare()
  2012-03-07 17:12 [PATCH v2] [SCSI] sd: set BIO_MAPPED_INTEGRITY bit correctly in sd_dif_prepare() santosh nayak
@ 2012-03-07 17:28 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2012-03-07 17:28 UTC (permalink / raw)
  To: santosh nayak
  Cc: JBottomley, matthew, linux-scsi, linux-kernel, kernel-janitors

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

A patch for this already went in.

commit 9354f1b8e6c55c335d1c4fb10d0ae7a041935240
Author: Muthu Kumar <muthu.lkml@gmail.com>
Date:   Mon Mar 5 14:59:16 2012 -0800

    floppy/scsi: fix setting of BIO flags

Sorry about that.

regards,
dan carpenter



[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2012-03-07 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 17:12 [PATCH v2] [SCSI] sd: set BIO_MAPPED_INTEGRITY bit correctly in sd_dif_prepare() santosh nayak
2012-03-07 17:28 ` Dan Carpenter

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).