Re: [PATCH 02/13] blkcg: update blkg_lookup_create() to do locking

2018-11-27 Thread Josef Bacik
On Mon, Nov 26, 2018 at 04:19:35PM -0500, Dennis Zhou wrote: > To know when to create a blkg, the general pattern is to do a > blkg_lookup() and if that fails, lock and do the lookup again, and if > that fails finally create. It doesn't make much sense for everyone who > wants to do creation to wri

[PATCH 02/13] blkcg: update blkg_lookup_create() to do locking

2018-11-26 Thread Dennis Zhou
To know when to create a blkg, the general pattern is to do a blkg_lookup() and if that fails, lock and do the lookup again, and if that fails finally create. It doesn't make much sense for everyone who wants to do creation to write this themselves. This changes blkg_lookup_create() to do locking