diff options
author | NeilBrown <neilb@suse.de> | 2006-12-13 00:34:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 09:05:48 -0800 |
commit | 802ba064c49f655d20fed563f2a4924c8256ea10 (patch) | |
tree | f705b597b2da6583239e9f028fa0d6f6ec319682 /drivers/md/raid1.c | |
parent | 011e3a9ad4891ba1b27e281e085228189c56b137 (diff) | |
download | op-kernel-dev-802ba064c49f655d20fed563f2a4924c8256ea10.zip op-kernel-dev-802ba064c49f655d20fed563f2a4924c8256ea10.tar.gz |
[PATCH] md: Don't assume that READ==0 and WRITE==1 - use the names explicitly
Thanks Jens for alerting me to this.
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: <raziebe@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index b3c5e12..b30f74b 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1736,7 +1736,7 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i /* take from bio_init */ bio->bi_next = NULL; bio->bi_flags |= 1 << BIO_UPTODATE; - bio->bi_rw = 0; + bio->bi_rw = READ; bio->bi_vcnt = 0; bio->bi_idx = 0; bio->bi_phys_segments = 0; |