kernel_optimize_test/net/ceph
Ilya Dryomov 4eea0fefd7 libceph: use for_each_request() in ceph_osdc_abort_on_full()
Scanning the trees just to see if there is anything to abort is
unnecessary -- all that is needed here is to update the epoch barrier
first, before we start aborting.  Simplify and do the update inside the
loop before calling abort_request() for the first time.

The switch to for_each_request() also fixes a bug: homeless requests
weren't even considered for aborting.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
2018-06-04 20:45:58 +02:00
..
crush
armor.c
auth_none.c
auth_none.h
auth_x_protocol.h
auth_x.c
auth_x.h
auth.c
buffer.c
ceph_common.c
ceph_fs.c
ceph_hash.c
ceph_strings.c
cls_lock_client.c
crypto.c
crypto.h
debugfs.c
Kconfig
Makefile
messenger.c libceph: use MSG_TRUNC for discarding received bytes 2018-06-04 20:45:55 +02:00
mon_client.c libceph: reschedule a tick in finish_hunting() 2018-04-24 10:40:21 +02:00
msgpool.c
osd_client.c libceph: use for_each_request() in ceph_osdc_abort_on_full() 2018-06-04 20:45:58 +02:00
osdmap.c
pagelist.c
pagevec.c
snapshot.c
string_table.c
striper.c