[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1ftgs2b6g.fsf@oracle.com>
Date: Mon, 06 Jan 2020 22:32:55 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Balbir Singh <sblbir@...zon.com>
Cc: <linux-kernel@...r.kernel.org>, <linux-block@...r.kernel.org>,
<linux-nvme@...ts.infradead.org>, <axboe@...nel.dk>,
<ssomesh@...zon.com>, <jejb@...ux.ibm.com>, <hch@....de>,
<mst@...hat.com>, <Chaitanya.Kulkarni@....com>
Subject: Re: [resend v1 1/5] block/genhd: Notify udev about capacity change
Hi Balbir,
> Allow block/genhd to notify user space (via udev) about disk size
> changes using a new helper disk_set_capacity(), which is a wrapper on
> top of set_capacity(). disk_set_capacity() will only notify via udev
> if the current capacity or the target capacity is not zero.
I know set_capacity() is called all over the place making it a bit of a
pain to audit. Is that the reason you introduced a new function instead
of just emitting the event in set_capacity()?
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists