projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd128a
)
ѕd: remove pointless REQ_TYPE_FS check
author
Christoph Hellwig
<hch@lst.de>
Tue, 31 Jan 2017 15:57:23 +0000
(16:57 +0100)
committer
Jens Axboe
<axboe@fb.com>
Tue, 31 Jan 2017 21:00:04 +0000
(14:00 -0700)
->done can only be called for fs requests, so no need to check again here.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/sd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/sd.c
b/drivers/scsi/sd.c
index c779986edb43e62d3e6e763e2e538e9c0146c809..bd2fb4d52efa6092990110963f9aba05dc281155 100644
(file)
--- a/
drivers/scsi/sd.c
+++ b/
drivers/scsi/sd.c
@@
-1735,9
+1735,6
@@
static unsigned int sd_completed_bytes(struct scsi_cmnd *scmd)
unsigned int transferred = scsi_bufflen(scmd) - scsi_get_resid(scmd);
unsigned int good_bytes;
- if (scmd->request->cmd_type != REQ_TYPE_FS)
- return 0;
-
info_valid = scsi_get_sense_info_fld(scmd->sense_buffer,
SCSI_SENSE_BUFFERSIZE,
&bad_lba);