mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 04:14:49 +08:00
scsi/scsi_tgt_lib: scsi_tgtd isn't used in memory reclaim path
Workqueue scsi_tgtd isn't used during memory reclaim. Convert to alloc_workqueue() without WQ_MEM_RECLAIM. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: FUJITA Tomonori <tomof@acm.org> Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com> Cc: linux-scsi@vger.kernel.org
This commit is contained in:
parent
278274d544
commit
40f38ffb72
@ -629,7 +629,7 @@ static int __init scsi_tgt_init(void)
|
|||||||
if (!scsi_tgt_cmd_cache)
|
if (!scsi_tgt_cmd_cache)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
scsi_tgtd = create_workqueue("scsi_tgtd");
|
scsi_tgtd = alloc_workqueue("scsi_tgtd", 0, 1);
|
||||||
if (!scsi_tgtd) {
|
if (!scsi_tgtd) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto free_kmemcache;
|
goto free_kmemcache;
|
||||||
|
Loading…
Reference in New Issue
Block a user