linux_dsm_epyc7002/include/linux/ceph
Ilya Dryomov c297eb4269 libceph: always signal completion when done
r_safe_completion is currently, and has always been, signaled only if
on-disk ack was requested.  It's there for fsync and syncfs, which wait
for in-flight writes to flush - all data write requests set ONDISK.

However, the pool perm check code introduced in 4.2 sends a write
request with only ACK set.  An unfortunately timed syncfs can then hang
forever: r_safe_completion won't be signaled because only an unsafe
reply was requested.

We could patch ceph_osdc_sync() to skip !ONDISK write requests, but
that is somewhat incomplete and yet another special case.  Instead,
rename this completion to r_done_completion and always signal it when
the OSD client is done with the request, whether unsafe, safe, or
error.  This is a bit cleaner and helps with the cancellation code.

Reported-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2016-12-14 22:39:08 +01:00
..
auth.h libceph: drop len argument of *verify_authorizer_reply() 2016-12-12 23:09:21 +01:00
buffer.h libceph: nuke ceph_kvfree() 2014-12-17 20:09:50 +03:00
ceph_debug.h
ceph_features.h libceph: revamp subs code, switch to SUBSCRIBE2 protocol 2016-03-25 18:51:38 +01:00
ceph_frag.h ceph: make logical calculation functions return bool 2016-05-26 01:15:39 +02:00
ceph_fs.h ceph: add flags parameter to send_cap_msg 2016-12-12 23:54:28 +01:00
ceph_hash.h
cls_lock_client.h libceph: support for lock.lock_info 2016-08-24 23:49:15 +02:00
debugfs.h libceph: simplify our debugfs attr macro 2015-04-20 18:55:39 +03:00
decode.h libceph: add start en/decoding block helpers 2016-07-28 02:55:36 +02:00
libceph.h rbd: add 'client_addr' sysfs rbd device attribute 2016-08-24 23:49:16 +02:00
mdsmap.h ceph: check availability of mds cluster on mount 2016-12-12 23:54:27 +01:00
messenger.h libceph: drop len argument of *verify_authorizer_reply() 2016-12-12 23:09:21 +01:00
mon_client.h libceph: support for blacklisting clients 2016-08-24 23:49:15 +02:00
msgpool.h libceph: fix some missing includes 2016-07-28 02:55:35 +02:00
msgr.h libceph: use keepalive2 to verify the mon session is alive 2015-09-08 23:14:30 +03:00
osd_client.h libceph: always signal completion when done 2016-12-14 22:39:08 +01:00
osdmap.h libceph: rados pool namespace support 2016-07-28 02:55:37 +02:00
pagelist.h libceph: fixup includes in pagelist.h 2014-12-17 20:09:53 +03:00
rados.h libceph: support for sending notifies 2016-05-26 01:15:28 +02:00
string_table.h libceph: introduce reference counted string 2016-07-28 02:55:37 +02:00
types.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00