android_kernel_motorola_sm6375/include/scsi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Damien Le Moal 70e42fd02c scsi: sd_zbc: Write unlock zone from sd_uninit_cmnd()
Releasing a zone write lock only when the write commnand that acquired
the lock completes can cause deadlocks due to potential command
reordering if the lock owning request is requeued and not executed. This
problem exists only with the scsi-mq path as, unlike the legacy path,
requests are moved out of the dispatch queue before being prepared and
so before locking a zone for a write command.

Since sd_uninit_cmnd() is now always called when a request is requeued,
call sd_zbc_write_unlock_zone() from that function for write requests
that acquired a zone lock instead of from sd_done(). Acquisition of a zone
lock by a write command is indicated using the new command
flag SCMD_ZONE_WRITE_LOCK.

Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
2017-08-16 20:01:31 -04:00
..
fc uapi: export all headers under uapi directories 2017-05-11 00:21:54 +09:00
fc_encode.h
fc_frame.h
fcoe_sysfs.h
iscsi_if.h
iscsi_proto.h
iser.h
libfc.h
libfcoe.h
libiscsi.h SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
libiscsi_tcp.h
libsas.h scsi: sas: scsi_queue_work can fail, so make callers aware 2017-06-27 21:28:04 -04:00
osd_attributes.h
osd_initiator.h block: introduce new block status code type 2017-06-09 09:27:32 -06:00
osd_ore.h
osd_protocol.h
osd_sec.h
osd_sense.h
osd_types.h
sas.h
sas_ata.h
scsi.h
scsi_bsg_iscsi.h
scsi_cmnd.h scsi: sd_zbc: Write unlock zone from sd_uninit_cmnd() 2017-08-16 20:01:31 -04:00
scsi_common.h
scsi_dbg.h
scsi_device.h SCSI misc on 20170704 2017-07-06 12:10:33 -07:00
scsi_devinfo.h scsi: remove various unused blist flags 2017-06-26 12:44:27 -04:00
scsi_dh.h
scsi_driver.h scsi: scsi_error: count medium access timeout only once per EH run 2017-04-06 13:07:32 -04:00
scsi_eh.h scsi: Improve scsi_get_sense_info_fld 2017-04-25 13:00:56 -04:00
scsi_host.h scsi: make asynchronous aborts mandatory 2017-04-06 13:07:33 -04:00
scsi_ioctl.h
scsi_proto.h SCSI misc on 20170704 2017-07-06 12:10:33 -07:00
scsi_request.h block: Change argument type of scsi_req_init() 2017-06-20 19:27:14 -06:00
scsi_tcq.h
scsi_transport.h
scsi_transport_fc.h scsi: fc: drop residual tsk_mgmt_response and it_nexus_response 2017-06-26 15:00:59 -04:00
scsi_transport_iscsi.h
scsi_transport_sas.h
scsi_transport_spi.h
scsi_transport_srp.h
scsicam.h
sg.h scsi: sg: disable SET_FORCE_LOW_DMA 2017-04-11 20:55:20 -04:00
srp.h
viosrp.h