Re: [PATCH 03/10] scsi/sr: use blk_cleanup_disk() instead of put_disk()
- To: Christoph Hellwig <hch@infradead.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, 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 03/10] scsi/sr: use blk_cleanup_disk() instead of put_disk()
- From: Luis Chamberlain <mcgrof@kernel.org>
- Date: Fri, 27 Aug 2021 11:28:57 -0700
- Message-id: <[🔎] YSku6VaEOzitSTOg@bombadil.infradead.org>
- In-reply-to: <[🔎] YSSK+0afMcpUAKyK@infradead.org>
- References: <20210823202930.137278-1-mcgrof@kernel.org> <20210823202930.137278-4-mcgrof@kernel.org> <[🔎] YSSK+0afMcpUAKyK@infradead.org>
On Tue, Aug 24, 2021 at 07:00:27AM +0100, Christoph Hellwig wrote:
> On Mon, Aug 23, 2021 at 01:29:23PM -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.
> >
> > Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
>
> .. not needed as the cleanup is done by the core scsi code.
Dropped.
Luis
Reply to: