Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752421AbdGYOuq (ORCPT ); Tue, 25 Jul 2017 10:50:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:54210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752070AbdGYOuo (ORCPT ); Tue, 25 Jul 2017 10:50:44 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DE8622BDF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jlayton@kernel.org From: Jeff Layton To: "Yan, Zheng" , Sage Weil , Ilya Dryomov Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] ceph: make kcephfs use errseq_t for writeback error reporting Date: Tue, 25 Jul 2017 10:50:40 -0400 Message-Id: <20170725145042.26219-1-jlayton@kernel.org> X-Mailer: git-send-email 2.13.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 24 From: Jeff Layton A couple of small patches to make cephfs use errseq_t for reporting writeback errors. This ensures that when a writeback error occurs that it is reported to all file descriptions that were open at the time. The first patch is what fixes the error reporting. The second patch (which should probably be considered an RFC) adds a new fault injection switch for cephfs that makes it throw writeback errors even when the writes succeed. I have an xfstest that uses this to help test error handling behavior in cephfs. Jeff Layton (2): ceph: use errseq_t for writeback error reporting ceph: pagecache writeback fault injection switch fs/ceph/addr.c | 7 +++++++ fs/ceph/caps.c | 2 +- fs/ceph/debugfs.c | 8 +++++++- fs/ceph/super.h | 2 ++ 4 files changed, 17 insertions(+), 2 deletions(-) -- 2.13.3