[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0ec65a30-741d-9f22-e90b-1f72f68b4346@kernel.dk>
Date: Tue, 23 Mar 2021 09:58:54 -0600
From: Jens Axboe <axboe@...nel.dk>
To: chris.chiu@...onical.com, viro@...iv.linux.org.uk, hch@....de
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] block: clear GD_NEED_PART_SCAN later in bdev_disk_changed
On 3/23/21 2:52 AM, chris.chiu@...onical.com wrote:
> From: Chris Chiu <chris.chiu@...onical.com>
>
> The GD_NEED_PART_SCAN is set by bdev_check_media_change to initiate
> a partition scan while removing a block device. It should be cleared
> after blk_drop_paritions because blk_drop_paritions could return
> -EBUSY and then the consequence __blkdev_get has no chance to do
> delete_partition if GD_NEED_PART_SCAN already cleared.
>
> It causes some problems on some card readers. Ex. Realtek card
> reader 0bda:0328 and 0bda:0158. The device node of the partition
> will not disappear after the memory card removed. Thus the user
> applications can not update the device mapping correctly.
Applied, thanks.
--
Jens Axboe
Powered by blists - more mailing lists