]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: ufs: Use blk_{get,put}_request() to allocate and free TMFs
authorBart Van Assche <bvanassche@acm.org>
Mon, 9 Dec 2019 18:13:09 +0000 (10:13 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 4 May 2021 14:08:52 +0000 (16:08 +0200)
commit1813be880fe597be75edb50dcb9c80672e8ff66c
treedf014d4e288c2de76dc7677358553fc86654db04
parent49396349f9f2877c604ebee3d1818734eaabb184
scsi: ufs: Use blk_{get,put}_request() to allocate and free TMFs

BugLink: https://bugs.launchpad.net/bugs/1926489
[ Upstream commit 69a6c269c097d780a2db320ecd47f7a62fafd92e ]

Manage TMF tags with blk_{get,put}_request() instead of
ufshcd_get_tm_free_slot() / ufshcd_put_tm_slot(). Store a per-request
completion pointer in request.end_io_data instead of using a waitqueue to
report TMF completion.

Cc: Can Guo <cang@codeaurora.org>
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Avri Altman <avri.altman@wdc.com>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20191209181309.196233-3-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h