From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757063AbaIIPRe (ORCPT ); Tue, 9 Sep 2014 11:17:34 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:63431 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754251AbaIIPRc (ORCPT ); Tue, 9 Sep 2014 11:17:32 -0400 Date: Wed, 10 Sep 2014 00:17:26 +0900 From: Tejun Heo To: Alan Stern Cc: James Bottomley , Shirish Pargaonkar , Jens Axboe , SCSI development list , Kernel development list Subject: Re: WARNING in block layer triggered in 3.17-rc3 Message-ID: <20140909151726.GA8890@mtj.dyndns.org> References: <20140909011945.GD11706@mtj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Alan. On Tue, Sep 09, 2014 at 11:08:22AM -0400, Alan Stern wrote: > Sorry, the meaning wasn't clear. I meant that the existing code > doesn't work. The patch seems to work okay (except that I can't use > queue_flag_test_and_set because the queue isn't locked at that point). > I'll submit the patch shortly. Given it's fully synchronized, the following should work fine and probably is less misleading than using atomic test_and_set. if (!blk_queue_init_done) { queue_flag_set_unlocked(QUEUE_FLAG_INIT_DONE, q); blk_queue_bypass_end(q); } Thanks. -- tejun