From patchwork Fri Dec 8 04:33:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 751642 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OXrPNL/C" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52B5AD54 for ; Thu, 7 Dec 2023 20:34:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702010041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=x7uEQe3UR5HfByN0z9lwtkkgYvLVpgEimrIjZW88iSc=; b=OXrPNL/CYkFgSIg6wsE0e5yYfJei8kFyL/Hn/ipfcUhRzgoeqd2Gsvc1/prfcGU08R7VJe u9i9FsS9fz+3yEdTyPUG1PrdL+pJeJwB/D8fl3pIYbzP46RoDcWN2qYkcABlX6+DJZAQH+ GKxhQ87Mye7TGWninXMYy5oDVY+ph0Y= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-570-Oo1eOqc2NgymAv0es2UQqw-1; Thu, 07 Dec 2023 23:33:59 -0500 X-MC-Unique: Oo1eOqc2NgymAv0es2UQqw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 36EC529AC01F; Fri, 8 Dec 2023 04:33:59 +0000 (UTC) Received: from li-a71a4dcc-35d1-11b2-a85c-951838863c8d.ibm.com.com (unknown [10.72.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F40F2166AE2; Fri, 8 Dec 2023 04:33:55 +0000 (UTC) From: xiubli@redhat.com To: idryomov@gmail.com, ceph-devel@vger.kernel.org Cc: jlayton@kernel.org, vshankar@redhat.com, mchangir@redhat.com, Xiubo Li Subject: [PATCH 0/2] libceph: fix sparse-read failure bug Date: Fri, 8 Dec 2023 12:33:03 +0800 Message-ID: <20231208043305.91249-1-xiubli@redhat.com> Precedence: bulk X-Mailing-List: ceph-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 From: Xiubo Li Xiubo Li (2): libceph: fail the sparse-read if there still has data in socket libceph: just wait for more data to be available on the socket net/ceph/messenger_v1.c | 18 ++++++++++-------- net/ceph/osd_client.c | 4 +++- 2 files changed, 13 insertions(+), 9 deletions(-) Reviewed-by: Jeff Layton