block: avoid calling blkg_free() in atomic context
[linux-block.git] / include / linux / blk-cgroup.h
index f2ad8ed8f777cf6df31796fe52fa1eeeb861027b..652cd05b0924c3d687716a0f4bb42e5c7f8d331e 100644 (file)
@@ -95,7 +95,10 @@ struct blkcg_gq {
 
        spinlock_t                      async_bio_lock;
        struct bio_list                 async_bios;
-       struct work_struct              async_bio_work;
+       union {
+               struct work_struct      async_bio_work;
+               struct work_struct      free_work;
+       };
 
        atomic_t                        use_delay;
        atomic64_t                      delay_nsec;