diff mbox

[7/9] ceph: set the req->r_abort_on_full in ceph_osdc_call when we are writing

Message ID 1525682645-30510-8-git-send-email-dongsheng.yang@easystack.cn (mailing list archive)
State New, archived
Headers show

Commit Message

Dongsheng Yang May 7, 2018, 8:44 a.m. UTC
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
---
 net/ceph/osd_client.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index a2e2c36..9c064c2 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -4907,6 +4907,8 @@  int ceph_osdc_call(struct ceph_osd_client *osdc,
 	ceph_oid_copy(&req->r_base_oid, oid);
 	ceph_oloc_copy(&req->r_base_oloc, oloc);
 	req->r_flags = flags;
+	if (req->r_flags & CEPH_OSD_FLAG_WRITE)
+		req->r_abort_on_full = true;
 
 	ret = ceph_osdc_alloc_messages(req, GFP_NOIO);
 	if (ret)