dm-crypt.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) | dm-crypt.c (670368a8ddc5df56437444c33b8089afc547c30a) |
---|---|
1/* 2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de> 3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org> 4 * Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1631 unchanged lines hidden (view full) --- 1640 else if (opt_params) { 1641 ret = -EINVAL; 1642 ti->error = "Invalid feature arguments"; 1643 goto bad; 1644 } 1645 } 1646 1647 ret = -ENOMEM; | 1/* 2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de> 3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org> 4 * Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 1631 unchanged lines hidden (view full) --- 1640 else if (opt_params) { 1641 ret = -EINVAL; 1642 ti->error = "Invalid feature arguments"; 1643 goto bad; 1644 } 1645 } 1646 1647 ret = -ENOMEM; |
1648 cc->io_queue = alloc_workqueue("kcryptd_io", 1649 WQ_NON_REENTRANT| 1650 WQ_MEM_RECLAIM, 1651 1); | 1648 cc->io_queue = alloc_workqueue("kcryptd_io", WQ_MEM_RECLAIM, 1); |
1652 if (!cc->io_queue) { 1653 ti->error = "Couldn't create kcryptd io queue"; 1654 goto bad; 1655 } 1656 1657 cc->crypt_queue = alloc_workqueue("kcryptd", | 1649 if (!cc->io_queue) { 1650 ti->error = "Couldn't create kcryptd io queue"; 1651 goto bad; 1652 } 1653 1654 cc->crypt_queue = alloc_workqueue("kcryptd", |
1658 WQ_NON_REENTRANT| 1659 WQ_CPU_INTENSIVE| 1660 WQ_MEM_RECLAIM, 1661 1); | 1655 WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM, 1); |
1662 if (!cc->crypt_queue) { 1663 ti->error = "Couldn't create kcryptd queue"; 1664 goto bad; 1665 } 1666 1667 ti->num_flush_bios = 1; 1668 ti->discard_zeroes_data_unsupported = true; 1669 --- 199 unchanged lines hidden --- | 1656 if (!cc->crypt_queue) { 1657 ti->error = "Couldn't create kcryptd queue"; 1658 goto bad; 1659 } 1660 1661 ti->num_flush_bios = 1; 1662 ti->discard_zeroes_data_unsupported = true; 1663 --- 199 unchanged lines hidden --- |