Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1548151 > unrolled thread

Re: [PATCH] scsi: mpt3sas: fix hang on ata passthru commands

Started byDavid Miller <davem@davemloft.net>
First post2016-12-29 17:20 +0100
Last post2016-12-29 17:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] scsi: mpt3sas: fix hang on ata passthru commands David Miller <davem@davemloft.net> - 2016-12-29 17:20 +0100

#1548151 — Re: [PATCH] scsi: mpt3sas: fix hang on ata passthru commands

FromDavid Miller <davem@davemloft.net>
Date2016-12-29 17:20 +0100
SubjectRe: [PATCH] scsi: mpt3sas: fix hang on ata passthru commands
Message-ID<sTLAS-pI-51@gated-at.bofh.it>
From: Jason Baron <jbaron@akamai.com>
Date: Wed, 28 Dec 2016 23:30:24 -0500

> On ata passthru commands scsih_qcmd() ends up spinning in
> scsi_wait_for_queuecommand() indefinitely. scsih_qcmd() is called from
> __blk_run_queue_uncond() which first increments request_fn_active to a
> non-zero value. Thus, scsi_wait_for_queuecommand() never completes because
> its spinning waiting for request_fn_active to become 0.
> 
> Two patches interact here. The first:
> 
> commit 18f6084a989b ("scsi: mpt3sas: Fix secure erase premature
> termination") calls scsi_internal_device_block() for ata passthru commands.
> 
> The second patch:
> 
> commit 669f044170d8 ("scsi: srp_transport: Move queuecommand() wait code
> to SCSI core") adds a call to scsi_wait_for_queuecommand() from
> scsi_internal_device_block().
> 
> Add a new parameter to scsi_internal_device_block() to decide whether
> or not to invoke scsi_wait_for_queuecommand().
> 
> Signed-off-by: Jason Baron <jbaron@akamai.com>

Tested-by: David S. Miller <davem@davemloft.net>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web