Files
linux-stable-mirror/block
Jens Axboe dac56212e8 bio: skip atomic inc/dec of ->bi_cnt for most use cases
Struct bio has a reference count that controls when it can be freed.
Most uses cases is allocating the bio, which then returns with a
single reference to it, doing IO, and then dropping that single
reference. We can remove this atomic_dec_and_test() in the completion
path, if nobody else is holding a reference to the bio.

If someone does call bio_get() on the bio, then we flag the bio as
now having valid count and that we must properly honor the reference
count when it's being put.

Tested-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-05-05 13:32:49 -06:00
..
2014-09-08 09:55:37 -06:00
2014-09-08 09:55:37 -06:00
2015-02-05 10:14:54 -07:00
2015-03-20 08:50:41 -06:00
2015-01-23 14:18:00 -07:00
2015-04-17 08:31:12 -06:00
2015-02-04 09:57:52 -07:00
2015-04-11 22:27:13 -04:00