Re: [PATCH 01/10] scsi/sd: use blk_cleanup_queue() insted of put_disk()
- To: Luis Chamberlain <mcgrof@kernel.org>
- Cc: axboe@kernel.dk, martin.petersen@oracle.com, jejb@linux.ibm.com, kbusch@kernel.org, sagi@grimberg.me, adrian.hunter@intel.com, beanhuo@micron.com, ulf.hansson@linaro.org, avri.altman@wdc.com, swboyd@chromium.org, agk@redhat.com, snitzer@redhat.com, josef@toxicpanda.com, hch@infradead.org, hare@suse.de, bvanassche@acm.org, ming.lei@redhat.com, linux-scsi@vger.kernel.org, linux-nvme@lists.infradead.org, linux-mmc@vger.kernel.org, dm-devel@redhat.com, nbd@other.debian.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
- Subject: Re: [PATCH 01/10] scsi/sd: use blk_cleanup_queue() insted of put_disk()
- From: Christoph Hellwig <hch@infradead.org>
- Date: Tue, 24 Aug 2021 06:52:53 +0100
- Message-id: <YSSJNTxyLHu/LsNJ@infradead.org>
- In-reply-to: <20210823202930.137278-2-mcgrof@kernel.org>
- References: <20210823202930.137278-1-mcgrof@kernel.org> <20210823202930.137278-2-mcgrof@kernel.org>
On Mon, Aug 23, 2021 at 01:29:21PM -0700, Luis Chamberlain wrote:
> The single put_disk() is useful if you know you're not doing
> a cleanup after add_disk(), but since we want to add support
> for that, just use the normal form of blk_cleanup_disk() to
> cleanup the queue and put the disk.
Hmm, I don't think this is correct. The request_queue is owned by the
core SCSI code.
Reply to: