Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp348908ybv; Sat, 22 Feb 2020 04:59:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxsIRBywkp0fag3Sx4zeIGB8uRk5M3DwTsW4ee5K2dyAcSsITn03KkQbUKLw2T5xn3JD9cp X-Received: by 2002:a9d:66c1:: with SMTP id t1mr29657102otm.73.1582376393884; Sat, 22 Feb 2020 04:59:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582376393; cv=none; d=google.com; s=arc-20160816; b=QQ+Eoxlw63gvdjL8vv1yJZAM1Lp/vsvGqON0quxV6QB77OujVgmkZlMCH5yXXZmEMg U0e69kYmoM+X7UnKUCt0rlT8xSKy+tJyPjDt6B42mrzTY1ZFyPUts9BwJm+DnJ3yZSJX 7AmSl1kajcdwAn9cLLbG7iNIfUaDxUR6xqurvIUeXT36S7KrusRj7Zrz/MBduweEy11x hGX7bRo2NcAepjdsz7RJLcIbNzJgVoXF6hmJ/LqdM07kLkFsEItqnP1QHJ/jx7j3exzD uHsK+yipSHpXJSRfv+n1qmStqdz8NvSCxCCRZ4ezb30veyWilUL+jMb68Qt+S1HI78GY tZbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=U/fpXE4B56U1vWAefMIBqqRrQ2pIt8QYHxluK8HIfts=; b=RXQXsw8VG9hUUUjvtdcDQg7meW2Esj6Ozoru5Tb5+0F8jfNjWpkeCYb3WtaHXG2dgY UU0/Y/uarXKN62gSxfV8VZRXd1Q7zXcStmOJUHq4bYgsmXvbQ1Kc/sB4e8CbDq/Iq8sI Z9UVox3TNWOUA6K+I/xy0FSRfEKaGoh2gT/2ek0eBB/07pFD3I12OhzP0wtVWaMj/OJH ncyMnMOnyGbSg5w8+Dmyulc2s86EdJa1xOScLFwekdTbINXTm3ay8nycBFqRT+7gmHFf RiotpFWWLj3DIgjqe5X2PmbLtSytJVCCcwyVW0mClTPksk/LS46di4c3JPRwRz/w7Kem hq3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si3301677otm.45.2020.02.22.04.59.41; Sat, 22 Feb 2020 04:59:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727308AbgBVM7e (ORCPT + 99 others); Sat, 22 Feb 2020 07:59:34 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:56120 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbgBVM7e (ORCPT ); Sat, 22 Feb 2020 07:59:34 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 8982F1C036F; Sat, 22 Feb 2020 13:59:32 +0100 (CET) Date: Sat, 22 Feb 2020 13:59:31 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Steve French , Oleg Kravtsov , Ronnie Sahlberg , Pavel Shilovsky , Sasha Levin Subject: Re: [PATCH 4.19 188/191] cifs: log warning message (once) if out of disk space Message-ID: <20200222125931.GC14067@amd> References: <20200221072250.732482588@linuxfoundation.org> <20200221072313.381537875@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="da4uJneut+ArUgXk" Content-Disposition: inline In-Reply-To: <20200221072313.381537875@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --da4uJneut+ArUgXk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2020-02-21 08:42:41, Greg Kroah-Hartman wrote: > From: Steve French >=20 > [ Upstream commit d6fd41905ec577851734623fb905b1763801f5ef ] >=20 > We ran into a confusing problem where an application wasn't checking > return code on close and so user didn't realize that the application > ran out of disk space. log a warning message (once) in these > cases. For example: >=20 > [ 8407.391909] Out of space writing to \\oleg-server\small-share Out of space can happen on any filesystem, and yes, it can be confusing. But why is cifs so special that we warn here (and not elsewhere) and why was this marked for stable? Best regards, Pavel > +++ b/fs/cifs/smb2pdu.c > @@ -3425,6 +3425,9 @@ smb2_writev_callback(struct mid_q_entry *mid) > wdata->cfile->fid.persistent_fid, > tcon->tid, tcon->ses->Suid, wdata->offset, > wdata->bytes, wdata->result); > + if (wdata->result =3D=3D -ENOSPC) > + printk_once(KERN_WARNING "Out of space writing to %s\n", > + tcon->treeName); > } else > trace_smb3_write_done(0 /* no xid */, > wdata->cfile->fid.persistent_fid, --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --da4uJneut+ArUgXk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl5RJbMACgkQMOfwapXb+vLCGQCgrGjJIfafpgWeDlUD4lQDyTlk EBwAmgLIA2xgvjoxSOCFHf/XPKc4B7bf =ux05 -----END PGP SIGNATURE----- --da4uJneut+ArUgXk--