public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* RFC: sort out get_gendisk abuses
@ 2020-09-25 16:14 Christoph Hellwig
  2020-09-25 16:14 ` [PATCH 1/2] blk-cgroup: stop abusing get_gendisk Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christoph Hellwig @ 2020-09-25 16:14 UTC (permalink / raw)
  To: Tejun Heo, Jens Axboe, Rafael J. Wysocki, Pavel Machek, Len Brown,
	Minho Ban
  Cc: cgroups, linux-block, linux-kernel, linux-pm

Hi all,

this series tries to remove two abuses of the get_gendisk API.
The first one is fairly straigt forward and switched the blk-cgroup
configuration API to properly open the block device, but I'd love to see
it reviewed and tested by the cgroup maintainers, as I don't really know
how this code is actually used.

The other one in the hibernation code really puzzles me - it busy loops
on the gendisk lookup, just to leak a reference when it finally succeeds
and then doesn't actually do anything with the result.  My proposal for
now is to simply revert the offending change, but better proposals are
welcome.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-10-02 14:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25 16:14 RFC: sort out get_gendisk abuses Christoph Hellwig
2020-09-25 16:14 ` [PATCH 1/2] blk-cgroup: stop abusing get_gendisk Christoph Hellwig
2020-09-25 16:14 ` [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume Christoph Hellwig
     [not found]   ` <20200925161447.1486883-3-hch-jcswGhMUV9g@public.gmane.org>
2020-09-25 18:38     ` Pavel Machek
2020-09-26 14:05       ` Christoph Hellwig
2020-09-30 15:45     ` Rafael J. Wysocki
     [not found]       ` <CAJZ5v0h8TbOZ=seE8+OqFKTRxOYK25aTXDam7Lez0VR5qnkM3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-10-02  6:50         ` Christoph Hellwig
     [not found]           ` <20201002065015.GA9691-jcswGhMUV9g@public.gmane.org>
2020-10-02 14:11             ` Rafael J. Wysocki
     [not found] ` <20200925161447.1486883-1-hch-jcswGhMUV9g@public.gmane.org>
2020-09-30 16:17   ` RFC: sort out get_gendisk abuses Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox