X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=block%2Fbio.c;h=0e4aa42bc30dc7919a58b5c93b4470d43cf01f85;hb=c65c3de673785c58c33e9d3f8d1203ba30efb595;hp=807d25e466ec2ab7ae8c319e62a5621dc4fc29a7;hpb=5d8cf7688ede7128ebdad8741ed5bdea0f2cd637;p=deliverable%2Flinux.git diff --git a/block/bio.c b/block/bio.c index 807d25e466ec..0e4aa42bc30d 100644 --- a/block/bio.c +++ b/block/bio.c @@ -311,17 +311,6 @@ static void bio_chain_endio(struct bio *bio) bio_endio(__bio_chain_endio(bio)); } -/* - * Increment chain count for the bio. Make sure the CHAIN flag update - * is visible before the raised count. - */ -static inline void bio_inc_remaining(struct bio *bio) -{ - bio_set_flag(bio, BIO_CHAIN); - smp_mb__before_atomic(); - atomic_inc(&bio->__bi_remaining); -} - /** * bio_chain - chain bio completions * @bio: the target bio