Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755199AbcJEUfw (ORCPT ); Wed, 5 Oct 2016 16:35:52 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:59419 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753161AbcJEUft (ORCPT ); Wed, 5 Oct 2016 16:35:49 -0400 Subject: Re: [PATCH] fs/block_dev.c: return the right error in thaw_bdev() To: Jan Kara , Pierre Morel References: <1475571220-2522-1-git-send-email-pmorel@linux.vnet.ibm.com> <1475571220-2522-2-git-send-email-pmorel@linux.vnet.ibm.com> <20161004090615.GF17515@quack2.suse.cz> CC: , , , , , From: Jens Axboe Message-ID: Date: Wed, 5 Oct 2016 14:35:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161004090615.GF17515@quack2.suse.cz> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [65.46.187.134] X-ClientProxiedBy: CO1PR15CA0006.namprd15.prod.outlook.com (10.166.26.144) To BN6PR15MB1188.namprd15.prod.outlook.com (10.172.205.142) X-MS-Office365-Filtering-Correlation-Id: df143490-1dad-44e1-a502-08d3ed5f2bf6 X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1188;2:2zEylbl2YZZjIeW6+CaJoRRmhF5p/iKc/ZftiA2nt7yDFanfTW25rrvMVqVWfj5QqUBBT4iw9cvD3vxhGSUceUxvTt3MeytHl4vygrDPz/3KXNSzfzgJnE3/VHeMNXVhSkqRVMyj4DBuRegr9Eh407KLs/mNEoqvL/EmdpqkLAEGhrNjqgkZOpNRa5eqhnjV;3:GI84WGdqUBd1FRUmF61V8teURDrw0G+aekJDMueccAEkrgHkqvYh4aUyAZUYBLr9QHdFo5MZI8DpKV7hErn920K1n13Nd+picL+W9uAwAcmmQ4QonZMUeyu/3IH4Wvwh X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR15MB1188; X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1188;25:GT/oXv0jbMtLTD+ETcd3dU4ltF74e/tVr+aqP5zqZW3H/eEAlBImp4lk3hHsClbh3+Wff/3mzW6B0pxUX3qKZinVLrzLNj0i43e+CirTHCf8TxmsNQQZu5apSigvuf3VMCDmr+gzV8ScbHBJzI9ZszZm7T6P9sUDjAPdgndCruOjzCNOUVEdXepMSf1M0Q4dm+Ml+JVOsq6P4dhbL7DXZBdN8EZBXg3tTboVgpjkUM/A/MNib6lzfchYCoAD7vBJomV91h7zGS6HLZxFJiduSNh58dX6DAO7Dc0ElqfbyZ2ySBuy6a/+6XxEO4IabCk1UJta9x5eUZq3mY1/fGr/t4wV/1jN83KZO6nJNcIxXLCpnErfc4zunHnis1qg7yXj0wJOF4SZ8JxfFJ3nZ2GOsd+FjXjsuzeKaFPcZx1TFllqfW1A8G8sZ8+icq1MemiRuh0cRB+YE3LRNXxoGOJerdtm93dFRN9yy+KK1q1KBj7sSg0weqPCWZxEPmxQVQuzxW3CZS0tFXRSkPKESsMGM70e3S98p60nyPHR486FXhkJ/ePB7A3cWfKRq/6MmJiCMTuviwqTXkbTo94vA+SL1a46nbImBSag358pN5cH5/0fAxzDUkhwtf4qI6TlOaWtCansG5aU8tQm/7QCWT/uccCl1yA2T8RAIpQU60buO4UG3yxcXJ+vbs21tR4eXghTWFD6TtIiklaPN+HjgXWzWA==;31:jylOBZi++RLkXzthln4eagi2Wj0pSZUwUKTZV1NvI1cCoAgUbmXX0+FwFHrbnV5wMtCWT5QulHPsezqxfr23bLHePK/rho2wFex8nDN47ru/Sa2NLDuQdBlC/kyFCmM0Mysf4Y17PK/zVdan20Kr+zaDeKSbGM984DDxJZWeBqe2pJKrFVO31ubypDQDcESManl+C+r6Ol3FvJXQLhRZ0oLXevMpA8FQtuxrhGDk40c= X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1188;20:1rvRctYcqKtw9VOa1qv03U5adU4RJDvQthAUq3UvGuTDUBrujFeQxnLs6a4ZR+aA2eMir8sWk05koQB/NyxwvOGbzq2noe/zBloJOofSExidn2Fzk+TcqiqM8XgY1Gt3hz1Z4jctLtns4KXdZOsrY9QHgme9JzO3rkIjhRGiO5s=;4:8q7LLMLb2DhLEStgMatVQ/1aix/EgpY96Azlp5XAo1arWH/5h9bMaiiyJlQblgXnStUMNMrLFitqfxGILEuhYQSGauq93Awx1lV6xmRbrB+VBvwi4VZ2ygr0e9Es651sogy6wQc1Rr0GpkY96x7ndw5PBOAN9LZ5vHTJUPkUUeMDXUycYxbAuopLiXBkzDmPOs4J+TjqCFHK18dmhkCTFjv2YJ0XaSmFQ07TDnFdxMpcwnfWWI2TeCeoANLqtPpCb9XFPsLriiRwGXBy067ssrYwAFu28NkgCCtv/vRSD5YFkVsgYHjR4VMvaEP93jGliyzoCq2jLcyjjccDdedrkg0EadeudBcK2YESo+QnaCcVo1gAnQAx1dtE4vhs/W8DMWFwCNyEk6H4XlAmYDpe1k9/OnH4QJkpDbsS33j2Ir+ITjkY8vdKqgu0tI+ZS/gY5Yqg7MYh2Ku6qwn6oMMjyQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(190383065149520)(104084551191319); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BN6PR15MB1188;BCL:0;PCL:0;RULEID:;SRVR:BN6PR15MB1188; X-Forefront-PRVS: 008663486A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(7916002)(189002)(377454003)(377424004)(199003)(24454002)(8676002)(31686004)(19580395003)(64126003)(7736002)(50466002)(65826007)(42186005)(81166006)(81156014)(305945005)(230700001)(50986999)(3846002)(106356001)(92566002)(105586002)(6116002)(189998001)(83506001)(5660300001)(7846002)(4326007)(86362001)(101416001)(31696002)(6666003)(19580405001)(586003)(2906002)(77096005)(33646002)(36756003)(4001350100001)(65956001)(47776003)(76176999)(66066001)(5001770100001)(68736007)(54356999)(2950100002)(97736004)(23746002)(65806001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1188;H:[100.68.222.173];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BN6PR15MB1188;23:/M+MF5a5qjqWLGiZ6O2IWBAWdpSeJw6HU39YW?= =?Windows-1252?Q?WgDOEKNWbaAsRsTrSZiKq1Sr33KnKDLYSjiGJu0APFzmg8W3MgQP5I6b?= =?Windows-1252?Q?p6bfzfdS/su7jQV2gywxGzwcqh75JTV0ZhLLhl1yhDgmZIPCXHwh/iAx?= =?Windows-1252?Q?RssD7284PaGv0XhF5Z57NvMS9ndgrcpKsc7ZYgBCtSicv+gE96WoQDbJ?= =?Windows-1252?Q?tPg/pW2s+QeT8v1F8MpqRBPyPYico2YASwI3AI4MU0nGadXgbHPFftMQ?= =?Windows-1252?Q?5ZpuC0slGG9W54n2Rx2B9md9RT3YNt8UEsrF0NhxlRCqo5J2Xo7r7QVd?= =?Windows-1252?Q?BrAskfYfOFuSdq2IOPGSAij0Lvu+Kl1pXvuFVOM58FqjffZLgSqbjlMt?= =?Windows-1252?Q?v3jAN2WaaFOhC6T7tF/NAxhDPDIoK2WLNGgX4ipoNGVurAhgfcrbLLej?= =?Windows-1252?Q?Fy5pGoL2bps2NpXKiDvAbwoEUv9qY5qz4A2pKa111gtlgu40+Xp+JDAv?= =?Windows-1252?Q?LUhIdo9kHyFG22CaEMXHA5jhC66aNzu+P/vRqalkxNMWUJQEGou8lSav?= =?Windows-1252?Q?URPM9gETgzlUdS6UJZrhCmDTo0+uikq98bcnTCTAIOYnyQmVpOJfH6TC?= =?Windows-1252?Q?FHZpqp+xKB7lgMaNPrytsOtgkkrxvTRFAnlXGjgSwX5C+D6GTwvuVni+?= =?Windows-1252?Q?TeAVXq3lSp56r4vPcFm6fu7wIB9SpVK2Pe4Oc7Maz7bY3XdVfU6U02EW?= =?Windows-1252?Q?tNwy9CSRCpfYCqNMUft/BAiEN/96Kj3Be261vkFRhyYFFCblcylyU3IX?= =?Windows-1252?Q?6Eq+L6+8SeMZjHVkEAETcK6sXRbh21boS2iKL+uWcBaASZQByIM2Wm4K?= =?Windows-1252?Q?ldaptbr/7SNcIniuIjGmdnmAho9Z+eoCA7qOi9xRO/twuVFbLEND1Ryn?= =?Windows-1252?Q?s8141IDQjqLHLwOchSbdzw5iz4fpqZulLzKqUaJlkJAzEfMaykvruy3M?= =?Windows-1252?Q?90Kby6lKmd+gYVyJ1onk/GyNBwFdotzz21301a/nWbt0UwOvkNh9HMFq?= =?Windows-1252?Q?D1EbNlKa8SUfiSJhSGRqFlOc9USwCgDNuByaBwP0n4VjuCQr47T5+eaM?= =?Windows-1252?Q?dYiODD5WW0YapwBhHG5CYjCxn5ImdL61HLZ8R3EMcXo9rhsVA8W3wI0B?= =?Windows-1252?Q?q//rwyY7Y3s1KAW3o/XKNUzOjnR11bPibjRGqzBbE33eQYiIc6gYwhLC?= =?Windows-1252?Q?vOL+Io/Vfvjl7hpRS8tQMKzzlWE0X6IFSnAc5DyEpqHuW1Ltb7CckzGu?= =?Windows-1252?Q?SCXaHCoG0BYTarHvK3Tf1iq+7Bu53DgmHEGjGsuy2fuzNFtlHnYP7H2W?= =?Windows-1252?Q?gPMJm3QqkZRlhfnkfLOvhsSdeO+EVkZdXzQpcdhDzUHx6ZAbhCvzNYw9?= =?Windows-1252?Q?CP2gyeppQgxrwPSkVkmS6VtkapsjuK9J9BzZjSrNg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1188;6:0JTE7Y4W4VBqNspfsJX+g98KqcgClAQR9TiGDb6qChfVBuoFuCozmGq6FcqXJYPMUrebToGLfCT9DjoU+f251+itysUJA3wYnSxExIlHQnC7ScmPvH2mGG2k+SaTZDMnOkzQ7802OkvHPUojd3t83A3MsJTZah3B9Re4lZ5Hdl89/doG1/uXflPKZaUsoAbtSAmxTUK5vnaEOO449jB8vZyud3lVse3YzwT6OE6PGKAWEs8JCwY6k2mPOuAby4aWfjbcZWDmxa5UK+jfONgBVWuS62qT2J+kUI56d5rmHBw=;5:qD/cNplyIpetin8ssF+vUjxHbR/Ga1wrfJmvehAJPZqNcZ57ZSirgQ5qqt9qjFwR9WFxHcd6lltTep1GOgpQfm6T1XkPQB2gBVZev3PO0BUc6GqO3qpPndDpJ+mC5pGEJaOjFrL8nOV2pSGDkwJHeQ==;24:/XAcyzH4Nhhdq2lX6YxpHGuEdVMPURCAmxfNAqU4TCKG6/13mQWADHFnRhtco7fBMUMwXOdXAzzw+9ooxwSYM1/ExR0V3hZIU2wrqlUgCeA=;7:dKJ6OaUeme90n9meQpx7QqSr4SuqrTEUl7w1pBb13MVtA3XulBS7Ty3zeqcrri7XqUChaLTjyCrwEvWh9kU6uK5AOWDDZUVf424Tw+TO4jG8/Lid4eF/3unrTKH63oT1lhAWrK6WoZ7T4qjAe0NhmkIQ4zZQ9oIES96FRgBJIyAvDWtpVyn53MJr1T1IEFdprRNyyz3dzg4Z1/2b1Mm/7xWa0IHD3ix0E5YPOvO74EFGwUh9kbo+gu/lA3fHIpu9sLxnYq6OMMK2UjdqzOJPezbIje1cExMgPmjS9A6EN0p4XIfenalcfkDoFstXTktG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1188;20:FoH789SHGN8mtuZlLsQVlv+VrEtEumGMzf5ELhYrqEtfgrT26drC5mWHOeErdmBvn38Yu+VtC+O64yJdJNeElWhmwnkQG3k6q4/DmE+KiKFsrn9HroX4Vk4tRzLbcxjMy5nedCSDlbiN9yIsQC/PlHYuIiWbpGZM2Oo3VDBx9Vc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2016 20:35:38.1312 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1188 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-05_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 696 Lines: 21 On 10/04/2016 03:06 AM, Jan Kara wrote: > On Tue 04-10-16 10:53:40, Pierre Morel wrote: >> When triggering thaw-filesystems via magic sysrq, the system enters a >> loop in do_thaw_one(), as thaw_bdev() still returns success if >> bd_fsfreeze_count == 0. To fix this, let thaw_bdev() always return >> error (and simplify the code a bit at the same time). >> >> Reviewed-by: Eric Farman >> Reviewed-by: Cornelia Huck >> Signed-off-by: Pierre Morel > > The patch looks good. You can add: > > Reviewed-by: Jan Kara > > Jens, can you please merge this patch? Thanks! Added, thanks all. -- Jens Axboe