]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/md/dm-crypt.c
Fix congestion_wait() sync/async vs read/write confusion
[net-next-2.6.git] / drivers / md / dm-crypt.c
index 9933eb861c7191b34fe43b9ac01deb5e44bd614f..529e2ba505c30055440be381d908c52b3113f44d 100644 (file)
@@ -776,7 +776,7 @@ static void kcryptd_crypt_write_convert(struct dm_crypt_io *io)
                 * But don't wait if split was due to the io size restriction
                 */
                if (unlikely(out_of_pages))
-                       congestion_wait(WRITE, HZ/100);
+                       congestion_wait(BLK_RW_ASYNC, HZ/100);
 
                /*
                 * With async crypto it is unsafe to share the crypto context