From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223Ab1LUGgM (ORCPT ); Wed, 21 Dec 2011 01:36:12 -0500 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:46935 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050Ab1LUGgJ (ORCPT ); Wed, 21 Dec 2011 01:36:09 -0500 Date: Wed, 21 Dec 2011 08:36:06 +0200 (EET) From: Meelis Roos To: Tao Ma cc: Dan Williams , axboe@kernel.dk, Tao Ma , Linux Kernel list , linux-scsi@vger.kernel.org, Ed Nadolski Subject: Re: [PATCH] block: fix blk_queue_end_tag() In-Reply-To: <4EF17DC4.5010008@tao.ma> Message-ID: References: <20111220233117.17757.71139.stgit@localhost6.localdomain6> <4EF17DC4.5010008@tao.ma> User-Agent: Alpine 1.00 (SOC 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > - if (unlikely(tag >= bqt->max_depth)) { > > + if (WARN_ONCE(tag >= bqt->real_max_depth, > > + "%s: tag %d greater than tag map size: %d\n", > > + __func__, tag, bqt->real_max_depth)) { > > /* > > * This can happen after tag depth has been reduced. > Please also change the comments here since it should never happen in the > right workload. What do you mean by right workload? Normal workload? -- Meelis Roos (mroos@linux.ee)