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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Dongsheng Yang <dongsheng.yang@xxxxxxxxxxxx>
---
 net/ceph/osd_client.c | 2 ++
 1 file changed, 2 insertions(+)

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)
-- 
1.8.3.1


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux