From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932901AbbJIH0N (ORCPT ); Fri, 9 Oct 2015 03:26:13 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34343 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932381AbbJIH0M (ORCPT ); Fri, 9 Oct 2015 03:26:12 -0400 Subject: Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI To: Hillf Danton References: <062501d10262$d40d0a50$7c271ef0$@alibaba-inc.com> Cc: linux-kernel From: Nikolay Borisov Message-ID: <56176C10.8040709@kyup.com> Date: Fri, 9 Oct 2015 10:26:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <062501d10262$d40d0a50$7c271ef0$@alibaba-inc.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/09/2015 10:19 AM, Hillf Danton wrote: >> @@ -109,8 +109,8 @@ static void ext4_finish_bio(struct bio *bio) >> if (bio->bi_error) >> buffer_io_error(bh); >> } while ((bh = bh->b_this_page) != head); >> - bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); >> local_irq_restore(flags); > > What if it takes 100ms to unlock after IRQ restored? I'm not sure I understand in what direction you are going? Care to elaborate? >> + bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); >> if (!under_io) { >> #ifdef CONFIG_EXT4_FS_ENCRYPTION >> if (ctx) >> -- >> 2.5.0 >