aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-10-24 16:11:30 +0200
committerZiyan <jaraidaniel@gmail.com>2016-01-08 10:36:40 +0100
commit753c4dc172451f94eaac75a8b5ee0ddcde345788 (patch)
tree580364badefec9b5fba54866590730d6a570146a /fs
parent541ea0f4261524b2e57a95fe8abadb8c8cda4248 (diff)
downloadkernel_samsung_tuna-753c4dc172451f94eaac75a8b5ee0ddcde345788.zip
kernel_samsung_tuna-753c4dc172451f94eaac75a8b5ee0ddcde345788.tar.gz
kernel_samsung_tuna-753c4dc172451f94eaac75a8b5ee0ddcde345788.tar.bz2
block: Remove the control of complete cpu from bio.
bio originally has the functionality to set the complete cpu, but it is broken. Chirstoph said that "This code is unused, and from the all the discussions lately pretty obviously broken. The only thing keeping it serves is creating more confusion and possibly more bugs." And Jens replied with "We can kill bio_set_completion_cpu(). I'm fine with leaving cpu control to the request based drivers, they are the only ones that can toggle the setting anyway". So this patch tries to remove all the work of controling complete cpu from a bio. Cc: Shaohua Li <shaohua.li@intel.com> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/bio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bio.c b/fs/bio.c
index 5a48044..95768d6 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -255,7 +255,6 @@ void bio_init(struct bio *bio)
{
memset(bio, 0, sizeof(*bio));
bio->bi_flags = 1 << BIO_UPTODATE;
- bio->bi_comp_cpu = -1;
atomic_set(&bio->bi_cnt, 1);
}
EXPORT_SYMBOL(bio_init);