From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH] sd: Fix a race between closing an sd device and sd I/O Date: Wed, 27 Mar 2019 21:18:34 -0400 Message-ID: References: <20190325170146.184414-1-bvanassche@acm.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20190325170146.184414-1-bvanassche@acm.org> (Bart Van Assche's message of "Mon, 25 Mar 2019 10:01:46 -0700") Sender: stable-owner@vger.kernel.org To: Bart Van Assche Cc: "Martin K . Petersen" , "James E . J . Bottomley" , linux-scsi@vger.kernel.org, Christoph Hellwig , Ming Lei , Hannes Reinecke , Johannes Thumshirn , Jason Yan , stable@vger.kernel.org List-Id: linux-scsi@vger.kernel.org Bart, > The scsi_end_request() function calls scsi_cmd_to_driver() indirectly > and hence needs the disk->private_data pointer. Avoid that that > pointer is cleared before all affected I/O requests have > finished. This patch avoids that the following crash occurs: Applied to 5.1/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering