From: "Martin K. Petersen" Subject: Re: [PATCH v2] scsi_debug: fix sleep in invalid context Date: Tue, 14 Jun 2016 21:54:40 -0400 Message-ID: References: <1464729307-22182-1-git-send-email-dgilbert@interlog.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:42185 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461AbcFOBzW (ORCPT ); Tue, 14 Jun 2016 21:55:22 -0400 In-Reply-To: <1464729307-22182-1-git-send-email-dgilbert@interlog.com> (Douglas Gilbert's message of "Tue, 31 May 2016 17:15:07 -0400") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Douglas Gilbert Cc: linux-scsi@vger.kernel.org, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, bart.vanassche@sandisk.com, hch@infradead.org >>>>> "Doug" == Douglas Gilbert writes: Doug> In this post: Doug> http://www.spinics.net/lists/linux-scsi/msg97124.html the author Doug> shows some kernel infrastructure complaining about a sleep in an Doug> invalid context. Remove offending call to vmalloc(). Instead of Doug> using kzalloc() which reviewers didn't like, use a bucket system Doug> (64 bytes on the stack) and potentially multiple calls to Doug> sg_pcopy_from_buffer() to construct the 'data-in' buffer for the Doug> SCSI REPORT LUNS command. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering