[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ye+l7K4peViBTOkX@infradead.org>
Date: Mon, 24 Jan 2022 23:25:32 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Eric Biggers <ebiggers@...nel.org>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-api@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-mmc@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bart Van Assche <bvanassche@....org>,
Hannes Reinecke <hare@...e.de>
Subject: Re: [PATCH v4 1/3] block: simplify calling convention of
elv_unregister_queue()
On Mon, Jan 24, 2022 at 01:59:36PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@...gle.com>
>
> Make elv_unregister_queue() a no-op if q->elevator is NULL or is not
> registered.
>
> This simplifies the existing callers, as well as the future caller in
> the error path of blk_register_queue().
>
> Also don't bother checking whether q is NULL, since it never is.
>
> Reviewed-by: Hannes Reinecke <hare@...e.de>
> Reviewed-by: Bart Van Assche <bvanassche@....org>
> Signed-off-by: Eric Biggers <ebiggers@...gle.com>
Looks good,
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists