aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
AgeCommit message (Collapse)AuthorFilesLines
2010-02-17[SCSI] libiscsi: reset cmd timer if cmds are making progressMike Christie1-4/+49
This patch resets the cmd timer if cmds started before the timedout command are making progress. The idea is that the cmd probably timed out because we are trying to exeucte too many commands. If it turns out that the device the IO timedout on was bad or the cmd just got screwed up but other IO/devs were ok then we will will figure this out when the cmds ahead of the timed out one complete ok. This also fixes a bug where we were sort of detecting this by setting the last_timeout and last_xfer to the same value when the task was allocated. That caught the case where we never got to send any IO for it. However, if the problem had started right before we started the new task, then we were forced to wait an extra cmd timeout seconds to start the scsi eh. Signed-off-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] cxgb3i: check for setup netdevMike Christie1-0/+12
If the netdev has not been setup when the host is, we will oops when the iscsi layer calls into the driver and a it tries to reference the netdev in hba->ndev. This can happen if the iscsi driver is loaded before ifup is done. This patch just adds a check, so we can gracefully fail the operation. Signed-off-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] cxgb3i, bnx2i: remove uses of nipquad use %pi4Joe Perches3-8/+8
Remove uses of NIPQUAD, use %pI4 Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: update driver version to 2.0.1-3Stephen M. Cameron1-1/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Reorder compat ioctl functions to eliminate some forward ↵Stephen M. Cameron1-34/+30
declarations. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: eliminate lock_kernel in compat_ioctlStephen M. Cameron1-13/+3
The use of the big kernel lock here appears to be ancient cruft that is no longer needed. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: fix bug in adjust_hpsa_scsi_tableStephen M. Cameron1-6/+20
fix bug in adjust_hpsa_scsi_table which caused devices which have changed size, etc. to do the wrong thing. The problem was as follows: The driver maintains its current idea of what devices are present in the h->dev[] array. When it updates this array, it scans the hardware, and produces a new list of devices, call it sd[], for scsi devices. Then, it compares each item in h->dev[] vs. sd[], and any items which are not present sd it removes from h->dev[], and any items present in sd[], but different, it modifies in h->dev[]. Then, it looks for items in sd[] which are not present in h->dev[], and adds those items into h->dev[]. All the while, it keeps track of what items were added and removed to/from h->dev[]. Finally, it updates the SCSI mid-layer by removing and adding the same devices it removed and added to/from h->dev[]. (modified devices count as a remove then add.) originally, when a "changed" device was discovered, it was removed then added to h->dev[]. The item was added to the *end* of h->dev[]. And, the item was removed from sd[] as well (nulled out). As it processed h->dev[], these newly added items at the end of the list were encountered, and sd[] was searched, but those items were nulled out. So they ended up getting removed immediately after they were added. The solution is to have a way to replace items in the h->dev[] array instead of doing a remove + add. Then the "changed" items. are not encountered a second time, and removed. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Fix hpsa_find_scsi_entry so that it doesn't try to dereference ↵Stephen M. Cameron1-0/+2
NULL pointers Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: clarify obscure comment in adjust_hpsa_scsi_tableStephen M. Cameron1-1/+5
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: print all the bytes of the CDB, not just the first one.Mike Miller1-1/+5
Signed-off-by: Mike Miller <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: when resetting devices, print out which deviceStephen M. Cameron1-2/+2
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: use scan_start and scan_finished entry points for scanningStephen M. Cameron2-3/+55
use scan_start and scan_finished entry points for scanning and route the CCISS_REGNEWD ioctl and sysfs triggering of same functionality through hpsa_scan_start. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Add an shost_to_hba helper function.Stephen M. Cameron1-2/+7
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Don't return DID_NO_CONNECT when a device is merely not readyMatt Gates1-1/+0
Signed-off-by: Matt Gates <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Retry commands completing with a sense key of ABORTED_COMMANDMatt Gates1-2/+9
Signed-off-by: Matt Gates <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Return DID_RESET for commands which complete with status of ↵Matt Gates1-1/+1
UNSOLICITED ABORT The commands should be retried, and this will make that happen, instead of resulting in an i/o error. Signed-off-by: Matt Gates <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Fix p1210m LUN assignment.Stephen M. Cameron2-20/+98
The p1210m responsds to SCSI report LUNs, unlike traditional Smart Array controllers. This means that the bus, target, and lun assignments done by the driver cannot be arbitrary, but must match what SCSI REPORT LUNS returns. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: add pci ids for storageworks 1210m, remove p400, p800, p700mMike Miller1-6/+5
and update pci_ids.h to include new PCI ID for StorageWorks 1210m variant. Signed-off-by: Mike Miller <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Allow multiple command completions per interrupt.Don Brace3-66/+404
This is done by adding support for the so-called "performant mode" (that's really what they called it). Smart Array controllers have a mode which enables multiple command completions to be delivered with a single interrupt, "performant" mode. We want to use that mode, as some newer controllers will be requiring this mode. Signed-off-by: Don Brace <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: Mike Miller <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: interrupt pending function should return bool not unsigned longStephen M. Cameron2-6/+4
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: fix some debug printks to use dev_dbg insteadStephen M. Cameron1-9/+4
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: make tag macros into functionsStephen M. Cameron2-7/+22
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: eliminate unnecessary memcpysStephen M. Cameron1-8/+3
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: remove unwanted debug codeStephen M. Cameron1-6/+0
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: use kzalloc not kmalloc plus memsetStephen M. Cameron1-3/+2
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: use sizeof() not an inline constant in memset.Stephen M. Cameron1-3/+2
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: return proper error codes not minus one.Stephen M. Cameron1-15/+22
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: remove superfluous returns from void functions.Stephen M. Cameron1-4/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: make adjust_hpsa_scsi_table return void.Stephen M. Cameron1-2/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Use BUG_ON instead of an if statement.Stephen M. Cameron1-2/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: avoid unwanted promotion from unsigned to signed for raid level ↵Stephen M. Cameron1-2/+2
index Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: Use kernel integer types, not userland onesStephen M. Cameron3-120/+120
That is, use u64, u32, u16 and u8 rather than __u64, __u32, __u16 and __u8. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] hpsa: fix typo in commentsStephen M. Cameron1-1/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] qla2xxx: negative error return in qla2x00_change_queue_depth()Roel Kluin1-1/+1
The *change_queue_depth functions usually return a negative error return. Signed-off-by: Roel Kluin <[email protected]> Acked-by: Giridhar Malavali <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] megaraid_sas: version and documentation updateYang, Bo2-4/+4
Signed-off-by Bo Yang<[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] megaraid_sas: driver fixed the device update issueYang, Bo1-0/+142
driver fixed the device update issue after get the AEN PD delete/ADD and LD add/delete from FW. Signed-off-by Bo Yang<[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] megaraid_sas: add the logical drive list to driverYang, Bo2-0/+125
Driver issue the get ld list to fw to get the logic drive list. Driver will keep the logic drive list for the internal use after driver load. Signed-off-by Bo Yang<[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] megaraid_sas: Zero pad_0 in mfi structureYang, Bo1-0/+7
Add the pad_0 in mfi frame structure to 0 to fix the context value larger than 32bit value issue. Signed-off-by Bo Yang<[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] fcoe: Only rmmod fcoe.ko if there are no active connectionsRob Love1-2/+16
Currently we're gracefully tearing down each active connection when fcoe.ko is removed. We shouldn't allow the user to destroy connections by removing the module. We should force the user to destroy each connection and then the module can be removed. This patch makes it so a refrerence count on the module is taken each time a fcoe_interface is created. The reference count is dropped when the fcoe_interface is destroyed. This makes it so that module_exit() doesn't get called unless all fcoe_interfaces have been destroyed. This patch leaves the removal of interfaces in the module_exit routine so that if the user does a 'rmmod -f' we'll clean everything up before removing the module. The module_put line was put before the out_putdev goto line because we should only be decrementing the reference count if a fcoe_interface is actually destroyed. If we can't find the netdev or the fcoe_interface then it's assumed that something else has destroyed the fcoe_interface and it would have decremented the reference count at that time. Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] libfcoe: Send port LKA every FIP_VN_KA_PERIOD secs.Bhanu Prakash Gollapudi1-1/+1
libfcoe module doesnt send port keep alive every FIP_VN_KA_PERIOD due to improper assignment of timeout value. Update the port_ka_time appropriately by incrementing it by FIP_VN_KA_PERIOD in fcoe_ctlr_timeout(), so that the link_work is scheduled to send the port LKA. Signed-off-by: Bhanu Gollapudi <[email protected]> Acked-by: Joe Eykholt <[email protected]> Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] libfc: Don't assume response request present.Hugh Daschbach1-1/+2
Fix NULL pointer dereference crash occurs in fc_lport_bsg_request() for bsg requests that do not contain a response request. Specifically, FC_BSG_HST_ADD_RPORT and FC_BSG_HST_DEL_RPORT bsg requests are not guaranteed to include a response request. Signed-off-by: Hugh Daschbach <[email protected]> Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] libfc: Fix e_d_tov ns -> ms scaling factor in PLOGI response.Hugh Daschbach1-1/+1
Both PLOGI and RTV response processing conditionally scale e_d_tov, but use different scaling factors. The scaling factor is correct in RTV response processing. Bring PLOGI e_d_tov scaling in line with RTV common service parameter inspection. Signed-off-by: Hugh Daschbach <[email protected]> Acked-by: Joe Eykholt <[email protected]> Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] libfc: call ddp setup for only FCP reads to avoid accessing junk fsp ↵Vasu Dev2-4/+1
pointer Adds check to call fc_fcp_ddp_setup for only FCP read cmds to avoid accessing junk fsp pointer at least in ESX since non FCP frame had junk fsp value, though fsp is implicitly initialized to null by __alloc_skb but with this patch no more relying on fsp initialized to null value and hitting junk fsp ptr access. Removes fsp pointer checking in fc_fcp_ddp_setup as this is not needed any more since its only caller for FCP read will always have a valid fsp. Reported by: Frank Zhang <[email protected]> Reported by: Rob Love <[email protected]> Signed-off-by: Vasu Dev <[email protected]> Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-17[SCSI] iscsi_tcp regression: remove bogus warn on in write pathMike Christie1-5/+3
An empty r2tqueue is a valid state. It just means that we have processed all that there was to do. This patch removes the WARN_ON that was added when the kfifo changes were merged. Signed-off-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-09tree-wide: Assorted spelling fixesDaniel Mack9-10/+10
In particular, several occurances of funny versions of 'success', 'unknown', 'therefore', 'acknowledge', 'argument', 'achieve', 'address', 'beginning', 'desirable', 'separate' and 'necessary' are fixed. Signed-off-by: Daniel Mack <[email protected]> Cc: Joe Perches <[email protected]> Cc: Junio C Hamano <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
2010-02-08[SCSI] lpfc 8.3.8: Update Driver version to 8.3.8James Smart1-2/+2
Update Driver version to 8.3.8 Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-08[SCSI] lpfc 8.3.8: (BSG4) Add new vendor specific BSG CommandsJames Smart1-14/+1569
Add the following new vendor specific BSG commands. - Add LPFC_BSG_VENDOR_GET_MGMT_REV command - Add LPFC_BSG_VENDOR_MBOX command - Add LPFC_BSG_VENDOR_DIAG_MODE command - Add LPFC_BSG_VENDOR_DIAG_TEST command Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-08[SCSI] lpfc 8.3.8: (BSG3) Modify BSG commands to operate asynchronouslyJames Smart1-271/+592
Modify the following BSG commands to operate asynchronously. - FC_BSG_RPT_ELS - FC_BSG_RPT_CT - LPFC_BSG_VENDOR_GET_CT_EVENT - LPFC_BSG_VENDOR_SET_CT_EVENT Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-08[SCSI] lpfc 8.3.8: (BSG2) Create lpfc_bsg.hJames Smart1-0/+98
Create lpfc_bsg.h - structures, etc used by bsg-related routines. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-02-08[SCSI] lpfc 8.3.8: (BSG1) Update BSG infrastructureJames Smart7-54/+47
Update BSG infrastructure to handle new vendor specific BSG commands. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>