git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
blkcg: handle dying request_queue when associating a blkg
[sfrench/cifs-2.6.git]
/
include
/
linux
/
blk-cgroup.h
diff --git
a/include/linux/blk-cgroup.h
b/include/linux/blk-cgroup.h
index bf13ecb0fe4f67189af465751cca98a441463f15..f025fd1e22e654bff0803b0a80599eafee196ae4 100644
(file)
--- a/
include/linux/blk-cgroup.h
+++ b/
include/linux/blk-cgroup.h
@@
-511,7
+511,7
@@
static inline bool blkg_tryget(struct blkcg_gq *blkg)
*/
static inline struct blkcg_gq *blkg_tryget_closest(struct blkcg_gq *blkg)
{
- while (!percpu_ref_tryget(&blkg->refcnt))
+ while (
blkg &&
!percpu_ref_tryget(&blkg->refcnt))
blkg = blkg->parent;
return blkg;