2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/drivers/md/bcache
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
..
alloc.c bcache allocator: send discards with correct size 2014-08-04 15:23:03 -07:00
bcache.h bcache: fix crash with incomplete cache set 2014-08-04 15:23:04 -07:00
bset.c bcache: Allocate bounce buffers with GFP_NOWAIT 2014-08-04 15:23:03 -07:00
bset.h bcache: fix typo in bch_bkey_equal_header 2014-08-04 15:23:03 -07:00
btree.c bcache: try to set b->parent properly 2014-08-04 15:23:04 -07:00
btree.h bcache: try to set b->parent properly 2014-08-04 15:23:04 -07:00
closure.c bcache: kill closure locking code 2014-01-08 13:05:08 -08:00
closure.h arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
debug.c bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
debug.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
extents.c bcache: Fix a journal replay bug 2014-08-04 15:23:02 -07:00
extents.h bcache: Fix a journal replay bug 2014-08-04 15:23:02 -07:00
io.c block: Introduce new bio_split() 2013-11-23 22:33:57 -08:00
journal.c bcache: Fix an infinite loop in journal replay 2014-08-04 15:23:03 -07:00
journal.h bcache: Fix a shutdown bug 2014-02-25 18:42:49 -08:00
Kconfig bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
Makefile bcache: Abstract out stuff needed for sorting 2014-01-08 13:05:12 -08:00
movinggc.c bcache: stop moving_gc marking buckets that can't be moved. 2014-03-18 12:22:34 -07:00
request.c bio: skip atomic inc/dec of ->bi_cnt for most use cases 2015-05-05 13:32:49 -06:00
request.h bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
stats.c bcache: Kill dead cgroup code 2014-03-18 12:22:35 -07:00
stats.h bcache: Break up struct search 2013-11-10 21:56:32 -08:00
super.c block: disable entropy contributions for nonrot devices 2014-10-04 10:55:32 -06:00
sysfs.c bcache: remove nested function usage 2014-03-18 12:39:28 -07:00
sysfs.h bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06:00
trace.c bcache: Better alloc tracepoints 2014-03-18 12:22:35 -07:00
util.c Linux 3.13-rc6 2013-12-31 09:51:02 -07:00
util.h bcache: Correct printing of btree_gc_max_duration_ms 2014-08-04 15:23:04 -07:00
writeback.c bcache: fix uninterruptible sleep in writeback thread 2014-08-04 15:23:03 -07:00
writeback.h bcache: fix uninterruptible sleep in writeback thread 2014-08-04 15:23:03 -07:00