VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Bob Peterson <rpeterso@redhat.com> 2017-08-16 11:30:06 -0500 committer: Bob Peterson <rpeterso@redhat.com> 2017-08-25 10:59:09 -0500 commit: 942b0cddfbf66295effc9fd879ca85ae10638565 parent: cc1dfa8b7571ea16dec9a29e0f4c4cad90b2a761
Commit Summary:
GFS2: Withdraw for IO errors writing to the journal or statfs
Diffstat:
1 file changed, 4 insertions, 1 deletion
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 739adf105d7f..e647938432bd 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1474,8 +1474,11 @@ static void quotad_error(struct gfs2_sbd *sdp, const char *msg, int error)
 {
 	if (error == 0 || error == -EROFS)
 		return;
-	if (!test_bit(SDF_SHUTDOWN, &sdp->sd_flags))
+	if (!test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
 		fs_err(sdp, "gfs2_quotad: %s error %d\n", msg, error);
+		sdp->sd_log_error = error;
+		wake_up(&sdp->sd_logd_waitq);
+	}
 }
 
 static void quotad_check_timeo(struct gfs2_sbd *sdp, const char *msg,