commit 17fa53da1239b8712c5cebbd72a74c713b6c2db9 tree 8cf55e47ce681a6c899ccf8e06abeccecb20d38b parent 3173d8c342971a03857d8af749a3f57da7d06b57 parent fe1b2d544d71300f8e2d151c3c77a130d13a58be author James Bottomley Wed, 07 Sep 2005 03:52:54 -0500 committer James Bottomley Wed, 07 Sep 2005 03:52:54 -0500 Merge by hand (conflicts in sd.c) -------------------------- commit 3173d8c342971a03857d8af749a3f57da7d06b57 tree 6dc8162d8b68e0b66846bf7e2ed015eb60d48378 parent ba482ef4b16bad5172d2be693d4b2420b84c84e7 author James Bottomley Sun, 04 Sep 2005 21:32:05 -0500 committer James Bottomley Wed, 07 Sep 2005 03:37:57 -0500 [SCSI] quieten messages on scsi_execute commands scsi_io_completion() can be a bit noisy about certain conditions. Previously this wasn't a problem for internally generated commands, since they never hit it. However, since we do all SCSI commands via bios, now they do. user CD testers like magicdev are now getting not ready messages every time they touch the CD to see if there's anything in it. Fix this by making all scsi_execute commands REQ_QUIET and making scsi_finish_io() not say anything for REQ_QUIET. Signed-off-by: James Bottomley -------------------------- commit fe1b2d544d71300f8e2d151c3c77a130d13a58be tree 770c8c9e857bb4d0bf7c96d831e35f91f2e11f9e parent c5478def7a3a2dba9ceda452c2aa3539514d30a9 author Christoph Hellwig Tue, 06 Sep 2005 14:15:37 +0200 committer James Bottomley Wed, 07 Sep 2005 03:26:37 -0500 [SCSI] unexport scsi_add_timer/scsi_delete_timer Signed-off-by: James Bottomley -------------------------- commit c5478def7a3a2dba9ceda452c2aa3539514d30a9 tree f007c87094d1fa3fede0cb10a665ecbaf1814223 parent 32993523dc59759ae6cb349e4d231d4cd2165329 author Christoph Hellwig Tue, 06 Sep 2005 14:04:26 +0200 committer James Bottomley Wed, 07 Sep 2005 03:26:06 -0500 [SCSI] switch EH thread startup to the kthread API Signed-off-by: James Bottomley -------------------------- commit 32993523dc59759ae6cb349e4d231d4cd2165329 tree cefbe293f78922658232f44eafd17e29714bd9fe parent 4869040512082b761de2d7c35975d01044f8bfea author Christoph Hellwig Tue, 06 Sep 2005 14:03:44 +0200 committer James Bottomley Wed, 07 Sep 2005 03:25:16 -0500 [SCSI] fix SCSI_IOCTL_PROBE_HOST This returns always false with new-style drivers right now. Make it return always true instead, as a host must be present if we are able to call the ioctl (without a host attached there would be no device node to call on..) Signed-off-by: James Bottomley -------------------------- commit 4869040512082b761de2d7c35975d01044f8bfea tree 41ac55ac610416537653b4b02ca4fd3a874ca568 parent 4451e472627881e3e2240b224f127c99be500f91 author Anton Blanchard Tue, 06 Sep 2005 18:08:14 +1000 committer James Bottomley Wed, 07 Sep 2005 03:23:43 -0500 [SCSI] Universal Xport no attach blacklist On Fri, Dec 13, 2002 at 12:24:39AM +1100, Anton Blanchard wrote: > We tested 2.5.51 on a ppc64 box, qlogic 2312 and a fastt700 array. I > had CONFIG_SCSI_REPORT_LUNS and unfortunately it thought the management > LUN was a disk: > > Vendor: IBM Model: Universal Xport Rev: 0520 > Type: Direct-Access ANSI SCSI revision: 03 > > ... > > SCSI device sdaj: drive cache: write through > SCSI device sdaj: 40960 512-byte hdwr sectors (21 MB) > sdaj: unknown partition table > Attached scsi disk sdaj at scsi2, channel 0, id 0, lun 31 > > ... > > end_request: I/O error, dev sdaj, sector 0 Three years later... It looks like SGI use the same FC vendor and they already have a workaround for this issue. The following patch adds the IBM version of it. Signed-off-by: Anton Blanchard Signed-off-by: James Bottomley -------------------------- commit 4451e472627881e3e2240b224f127c99be500f91 tree 71dfcf330e5dc1faec9c7a54b235d700fc9df68d parent e47373ec1c9aab9ee134f4e2b8249957e9f4c7ef author Alan Stern Tue, 12 Jul 2005 18:45:17 -0400 committer James Bottomley Wed, 07 Sep 2005 03:21:53 -0500 [SCSI] sd: pause in sd_spinup_disk for slow USB devices This patch adds a delay tailored for USB flash devices that are slow to initialize their firmware. The symptom is a repeated Unit Attention with ASC=0x28 (Not Ready to Ready transition). The patch will wait for up to 5 seconds for such devices to become ready. Normal devices won't send the repeated Unit Attention sense key and hence won't trigger the patch. This fixes a problem with James Roberts-Thomson's USB device, and I've seen several reports of other devices exhibiting the same symptoms -- presumably they will be helped as well. Signed-off-by: Alan Stern Signed-off-by: James Bottomley -------------------------- commit e47373ec1c9aab9ee134f4e2b8249957e9f4c7ef tree e6f630c08223f71d1cbb502213503404ec65d86f parent 4dddbc26c3895ecdab1f4b16435685b47f96f599 author Alan Stern Thu, 31 Mar 2005 01:05:45 -0500 committer James Bottomley Wed, 07 Sep 2005 03:19:23 -0500 [SCSI] return success after retries in scsi_eh_tur The problem lies in the way the error handler uses TEST UNIT READY to tell whether error recovery has succeeded. The scsi_eh_tur function gives up after one round of retrying; after that it decides that more error recovery is needed. However TUR is liable to report sense data indicating a retry is needed when in fact error recovery has succeeded. A typical example might be SK=2, ASC=4, ASCQ=1 (Logical unit in process of becoming ready). The mere fact that we were able to get a sensible reply to the TUR should indicate that the device is working well enough to stop error recovery. I ran across a case back in January where this happened. A CD-ROM drive timed out the INQUIRY command, and a device reset fixed the blockage. But then the drive kept responding with 2/4/1 -- because it was spinning up I suppose -- until the error handler gave up and placed it offline. If the initial INQUIRY had received the 2/4/1 instead, everything would have worked okay. It doesn't seem reasonable for things to fail just because the error handler had started running. Signed-off-by: Alan Stern Signed-off-by: James Bottomley -------------------------- commit 4dddbc26c3895ecdab1f4b16435685b47f96f599 tree 1b7c78e961482c4a7a451627d5d421d509bafb99 parent 1aab60c25e9a500b9f15c1dfd775e70e7bde555c author James Bottomley Wed, 07 Sep 2005 03:11:54 -0500 committer James Bottomley Wed, 07 Sep 2005 03:11:54 -0500 [SCSI] ibmvscsi: handle large scatter/gather lists The maximum size of a scatter-gather list that the current IBM VSCSI Client can handle is 10. This patch adds large scatter-gather support to the client so that it is capable of handling up to SG_ALL(255) number of requests in the scatter-gather list. Signed-off-by: Linda Xie Acked by: Dave C Boutcher Rejections fixed up and Signed-off-by: James Bottomley -------------------------- commit 1aab60c25e9a500b9f15c1dfd775e70e7bde555c tree 238eb05467365617552d4ec23890d436059ffa89 parent f6ef3b1872915c6d69ca36cf4ca16269cb9a73ad author Andrew Vasquez Sat, 27 Aug 2005 09:10:30 -0700 committer James Bottomley Mon, 05 Sep 2005 05:54:06 -0500 [SCSI] qla2xxx: Update version number to 8.01.00-k. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit f6ef3b1872915c6d69ca36cf4ca16269cb9a73ad tree 58844cc5d933413b82bd7c348e604e48291b2e35 parent fe74c71f6bb63376d92bc606597f0818f5b11c2e author Andrew Vasquez Sat, 27 Aug 2005 09:10:20 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:57 -0500 [SCSI] qla2xxx: Stop firmware execution at unintialization time. On ISP24xx parts, stop execution of firmware during ISP tear-down. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit fe74c71f6bb63376d92bc606597f0818f5b11c2e tree 6673d186dc38ea678e8887c4dba27b17447552fe parent 86cd6baa8294dc5b2cedd84fb5cf3944eaf5271f author Andrew Vasquez Sat, 27 Aug 2005 09:10:10 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:52 -0500 [SCSI] qla2xxx: Replace schedule_timeout(). From: Nishanth Aravamudan Replace schedule_timeout() with msleep()/msleep_interruptible() as appropriate, to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Domen Puncer Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit 86cd6baa8294dc5b2cedd84fb5cf3944eaf5271f tree 97823923b79d9c5545cf302b24ae4a0d9eee4057 parent afb046e2be724a90f21f7cf0ba50e328005bd038 author Andrew Vasquez Sat, 27 Aug 2005 09:10:00 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:50 -0500 [SCSI] qla2xxx: Remove bad call to fc_remove_host() during probe failure. fc_remove_host() should only be called after a scsi_host has been successfully added via scsi_add_host() -- any failures while qla2xxx probing would result in an incorrect call to fc_remove_host() during cleanup. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit afb046e2be724a90f21f7cf0ba50e328005bd038 tree 42b765edbab8add27554294c4065ad850d9d36e8 parent ce7e4af7f507c156c3fd3dbb41ffe4a77c700b54 author Andrew Vasquez Sat, 27 Aug 2005 09:09:40 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:42 -0500 [SCSI] qla2xxx: Add host attributes. Export additional host information via the shost_attrs member in the scsi_host template. Attributes include: driver version, firmware version, ISP serial number, ISP type, ISP product ID, HBA model name, HBA model description, PCI interconnect information, and HBA port state. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit ce7e4af7f507c156c3fd3dbb41ffe4a77c700b54 tree dcb5d6a63ad4e1d88cfd58fca6ebfec4710cc998 parent 131736d34ebc3251d79ddfd08a5e57a3e86decd4 author Andrew Vasquez Sat, 27 Aug 2005 09:09:30 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:40 -0500 [SCSI] qla2xxx: Add change_queue_depth/type() API support. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit 131736d34ebc3251d79ddfd08a5e57a3e86decd4 tree b05ad75c24e50a3a177dd988814430e454615682 parent c32c4cb9fbe3bdc2a90c6eaae5ae30521d4ba9fc author Andrew Vasquez Sat, 27 Aug 2005 09:09:20 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:28 -0500 [SCSI] qla2xxx: Remove redundant call to pci_unmap_sg(). In a corner-case failure where the request-q does not contain enough entries for a given request, pci_unmap_sg() would be called twice. Remove direct call and let the failure-path logic handle the unmapping. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit c32c4cb9fbe3bdc2a90c6eaae5ae30521d4ba9fc tree cf1d51ebf17aefcc9f7508af03c02d2fc39d755c parent 06c22bd13f4eb55e291d5a31280b2ae5a70ad00d author Andrew Vasquez Sat, 27 Aug 2005 09:09:10 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:23 -0500 [SCSI] qla2xxx: Remove RISC pause/release barriers during flash manipulation. Remove unnecessary RISC pause/release barriers during ISP24xx flash manipulation. The ISP24xx can arbitrate flash access requests during RISC executions. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit 06c22bd13f4eb55e291d5a31280b2ae5a70ad00d tree d86cf7ccf317a5280f0685e74129eed324cdb317 parent c00c72ae01c03d3d172150392419040f8d55ab04 author Andrew Vasquez Sat, 27 Aug 2005 09:09:00 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:12 -0500 [SCSI] qla2xxx: Correct LED scheme definition. Original implementation used an overloaded bit in the EFI parameters. The correct bit is BIT_4 of the special_options section of NVRAM. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit c00c72ae01c03d3d172150392419040f8d55ab04 tree b0ee920f4720316004729a54a9bd0b8725a4b078 parent f7d289f62e2ea911ecb710015efd45c687fa81ce author Andrew Vasquez Sat, 27 Aug 2005 09:08:50 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:10 -0500 [SCSI] qla2xxx: Simplify redundant target/device reset logic. Remove redundant qla2x00_target_reset() function in favour of the equivalent qla2x00_device_reset(). Update callers of old function. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit f7d289f62e2ea911ecb710015efd45c687fa81ce tree 56dab7cac14ba96a1d1bb0a93ca5405e7a29a4a6 parent cca5335caf2d19ef8bd6b833445d2c6ca652a89b author Andrew Vasquez Sat, 27 Aug 2005 09:08:40 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:08 -0500 [SCSI] qla2xxx: Correct domain/area exclusion logic. In an FL topology, limit port recognition to those devices not within the same area and domain of the ISP. The firmware will recogonize such devices during local-loop discovery. Some devices may respond to a PLOGI before they have completed their fabric login or they may not be a public device. In this case they will report: domain == 00 area == 00 alpa == which is valid. Exclude such devices from local loop discovery. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit cca5335caf2d19ef8bd6b833445d2c6ca652a89b tree 74bb0b787d9feb1499ed2eafb2aa5a4317b6d3b5 parent ad3e0edaceb9771be7ffbd7aa24fb444a7ed85bf author Andrew Vasquez Sat, 27 Aug 2005 09:08:30 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:07 -0500 [SCSI] qla2xxx: Add FDMI support. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit ad3e0edaceb9771be7ffbd7aa24fb444a7ed85bf tree 0815f12f6e026ea220c03605f1b7e122b265c143 parent 7524f9b9e72cd36f0a70defcd424eba81c180f42 author Andrew Vasquez Sat, 27 Aug 2005 09:08:10 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:04 -0500 [SCSI] qla2xxx: Export class-of-service (COS) information. Export COS information for the fc_host and fc_remote_port objects added by the driver. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit 7524f9b9e72cd36f0a70defcd424eba81c180f42 tree bca4f0b98ae82020f001a1681954624c761c2865 parent c6678e0cfb41b029c3600c54b5bb65954de1230a author Andrew Vasquez Sat, 27 Aug 2005 09:08:00 -0700 committer James Bottomley Mon, 05 Sep 2005 05:53:02 -0500 [SCSI] qla2xxx: Use dma_get_required_mask() in determining the 'ideal' DMA mask. In order to efficiently utilise the ISP's IOCB request-queue, use the dma_get_required_mask() function to determine the use of command-type 2 or 3 IOCBs when queueing SCSI commands. This applies to ISP2[123]xx chips only, as the ISP24xx uses command-type 7 IOCBs which use 64bit DSDs. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley -------------------------- commit c6678e0cfb41b029c3600c54b5bb65954de1230a tree ca3ac267e56bd481956a503e9595b4bfc52d174a parent 637fa99b86a00a0b5767a982b83a512ff48ad6d2 author Christoph Hellwig Thu, 18 Aug 2005 16:24:53 +0200 committer James Bottomley Mon, 05 Sep 2005 05:51:45 -0500 [SCSI] fusion: whitespace fixes Acked by: Moore, Eric Dean Signed-off-by: James Bottomley -------------------------- commit 637fa99b86a00a0b5767a982b83a512ff48ad6d2 tree cb3f063b83163cfcb53c85e0fd411fe11f766a1f parent ccf3b7bd26b242b39d54148ea2117295721681d3 author Christoph Hellwig Thu, 18 Aug 2005 16:25:44 +0200 committer James Bottomley Mon, 05 Sep 2005 05:51:25 -0500 [SCSI] fusion: endianess fixes Assorted endianess fixes. I'll work on full endianess annotations later. Acked by: Moore, Eric Dean Signed-off-by: James Bottomley -------------------------- commit ccf3b7bd26b242b39d54148ea2117295721681d3 tree a4fa0be9b769b57075a7bff9b5f55ec96c8132d1 parent 69218ee5186aded6c78e12e083e073d000ff2e9b author Christoph Hellwig Thu, 18 Aug 2005 16:24:26 +0200 committer James Bottomley Mon, 05 Sep 2005 05:48:39 -0500 [SCSI] fusion: update LSI headers Acked by: Moore, Eric Dean Signed-off-by: James Bottomley -------------------------- commit 69218ee5186aded6c78e12e083e073d000ff2e9b tree 6dfd357efa1a17fa3c845570c722185b568423f0 parent 1ff927306e08b356d764e605eff7c50079550bd2 author Christoph Hellwig Thu, 18 Aug 2005 16:26:15 +0200 committer James Bottomley Mon, 05 Sep 2005 05:48:06 -0500 [SCSI] fusion: extended config header support Acked by: Moore, Eric Dean Signed-off-by: James Bottomley -------------------------- commit 1ff927306e08b356d764e605eff7c50079550bd2 tree e96b628ce6673694c615f57013fcc14f72a6677f parent 77d71d222e871670300f3e3092e2a06f20c842f0 author Christoph Hellwig Fri, 19 Aug 2005 18:57:13 +0200 committer James Bottomley Mon, 05 Sep 2005 05:46:07 -0500 [SCSI] aic7xxx: remove aiclib.c #include of C files and macro tricks to rename symbols are evil and just cause trouble. Let's doublicate the two functions as they're going to go away soon enough anyway. Signed-off-by: James Bottomley -------------------------- commit 77d71d222e871670300f3e3092e2a06f20c842f0 tree 0cec7672a87b0becb254e67482c69074594943cb parent deb92b7ee98e8e580cafaa63bd1edbe6646877bc author Mark Haverkamp Thu, 01 Sep 2005 22:19:23 -0700 committer James Bottomley Mon, 05 Sep 2005 05:46:06 -0500 [SCSI] aacraid: bad BUG_ON fix This was noticed by Doug Bazamic and the fix found by Mark Salyzyn at Adaptec. There was an error in the BUG_ON() statement that validated the calculated fib size which can cause the driver to panic. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit deb92b7ee98e8e580cafaa63bd1edbe6646877bc tree d9f5210e78095048a2ba8a0cd90b19116d1a894f parent 07542b832309b93a2741cd162a391ab909f66438 author Douglas Gilbert Thu, 01 Sep 2005 21:50:02 +1000 committer James Bottomley Mon, 05 Sep 2005 05:46:03 -0500 [SCSI] sg direct io/mmap oops, st sync This patch adopts the same solution as proposed by Kai M. in a post titled: "[PATCH] SCSI tape signed/unsigned fix". The fix is in a function that the sg driver borrowed from the st driver so its maintenance is a little easier if the functions remain the same after the fix. - change nr_pages type from unsigned to signed so errors from get_user_pages() call are properly handled Signed-off-by: Douglas Gilbert Signed-off-by: James Bottomley -------------------------- commit 07542b832309b93a2741cd162a391ab909f66438 tree 4f003966a42737e4ba347589ff15f460072597c5 parent 61a7afa2c476a3be261cf88a95b0dea0c3bd29d4 author James Bottomley Thu, 01 Sep 2005 04:27:22 -0400 committer James Bottomley Mon, 05 Sep 2005 05:45:59 -0500 This patch fixes in st.c the bug in the signed/unsigned int comparison reported by Doug Gilbert and fixed by him in sg.c (see [PATCH] sg direct io/mmap oops). Doug fixed the comparison in sg.c. This fix for st.c does not touch the comparison but makes both arguments signed to remove the problem. The new code is adapted from linux/fs/bio.c. Signed-off-by: Kai Makisara Rejections fixed up and Signed-off-by: James Bottomley -------------------------- commit 61a7afa2c476a3be261cf88a95b0dea0c3bd29d4 tree 68c2724e2dbda8a8581592583af0d538b63db244 parent 2b7d6a8cb9718fc1d9e826201b64909c44a915f4 author James Bottomley Wed, 17 Aug 2005 04:27:34 -0500 committer James Bottomley Wed, 31 Aug 2005 08:48:51 -0500 [SCSI] embryonic RAID class The idea behind a RAID class is to provide a uniform interface to all RAID subsystems (both hardware and software) in the kernel. To do that, I've made this class a transport class that's entirely subsystem independent (although the matching routines have to match per subsystem, as you'll see looking at the code). I put it in the scsi subdirectory purely because I needed somewhere to play with it, but it's not a scsi specific module. I used a fusion raid card as the test bed for this; with that kind of card, this is the type of class output you get: jejb@titanic> ls -l /sys/class/raid_devices/20\:0\:0\:0/ total 0 lrwxrwxrwx 1 root root 0 Aug 16 17:21 component-0 -> ../../../devices/pci0000:80/0000:80:04.0/host20/target20:1:0/20:1:0:0/ lrwxrwxrwx 1 root root 0 Aug 16 17:21 component-1 -> ../../../devices/pci0000:80/0000:80:04.0/host20/target20:1:1/20:1:1:0/ lrwxrwxrwx 1 root root 0 Aug 16 17:21 device -> ../../../devices/pci0000:80/0000:80:04.0/host20/target20:0:0/20:0:0:0/ -r--r--r-- 1 root root 16384 Aug 16 17:21 level -r--r--r-- 1 root root 16384 Aug 16 17:21 resync -r--r--r-- 1 root root 16384 Aug 16 17:21 state So it's really simple: for a SCSI device representing a hardware raid, it shows the raid level, the array state, the resync % complete (if the state is resyncing) and the underlying components of the RAID (these are exposed in fusion on the virtual channel 1). As you can see, this type of information can be exported by almost anything, including software raid. The more difficult trick, of course, is going to be getting it to perform configuration type actions with writable attributes. Signed-off-by: James Bottomley -------------------------- commit 2b7d6a8cb9718fc1d9e826201b64909c44a915f4 tree ad08bea9651332c41192cd7e019692a1e1e103bf parent 53c165e0a6c8a4ff7df316557528fa7a52d20711 author James Bottomley Sun, 28 Aug 2005 19:13:17 -0500 committer James Bottomley Wed, 31 Aug 2005 08:44:32 -0500 [SCSI] attribute container final klist fixes Since the attribute container deletes from a klist while it's walking it, it is vulnerable to the problem (and fix) here: http://marc.theaimsgroup.com/?l=linux-scsi&m=112485448830217 The attached fixes this (but won't compile without the above). It also fixes the logical reversal in the traversal loop which meant that we were never actually traversing the loop to hit this bug in the first place. Signed-off-by: James Bottomley -------------------------- commit 53c165e0a6c8a4ff7df316557528fa7a52d20711 tree 354c599a07c45c71da2b848a90bbe4a98c42d333 parent 51490c89f95b8581782e9baa855da166441852be author James Bottomley Mon, 22 Aug 2005 20:06:19 -0500 committer James Bottomley Wed, 31 Aug 2005 08:44:20 -0500 [SCSI] correct attribute_container list usage One of the changes in the attribute_container code in the scsi-misc tree was to add a lock to protect the list of devices per container. This, unfortunately, leads to potential scheduling while atomic problems if there's a sleep in the function called by a trigger. The correct solution is to use the kernel klist infrastructure instead which allows lockless traversal of a list. Signed-off-by: James Bottomley -------------------------- commit ba482ef4b16bad5172d2be693d4b2420b84c84e7 tree 8da2f7f2e223a4ba4c64ef30daa7a2c6154f85d7 parent e514385be2b355c1f3fc6385a98a6a0fc04235ae parent 51490c89f95b8581782e9baa855da166441852be author James Bottomley Sun, 28 Aug 2005 21:40:00 -0500 committer James Bottomley Sun, 28 Aug 2005 21:40:00 -0500 Merge by hand (conflicts in sr.c) -------------------------- commit e514385be2b355c1f3fc6385a98a6a0fc04235ae tree 5506bb95c40532666552eef52566436d0551bed9 parent c9d297c543f379a27a34082070ed03a8ef846fc2 author James Bottomley Tue, 09 Aug 2005 21:55:36 -0500 committer James Bottomley Sun, 28 Aug 2005 21:34:12 -0500 [SCSI] fix sense buffer length handling problem The new bio code was incorrectly converted from stack allocated to kmalloc'd buffer handling. There are two places where it incorrectly uses sizeof(*sense) to get the size of the sense buffer. This actually produces one, so no sense data was ever getting back, causing failure in things like disk spin up. Signed-off-by: James Bottomley -------------------------- commit c9d297c543f379a27a34082070ed03a8ef846fc2 tree 4dcc96b31a31a6e7fbc82de31346f395fe78cb0b parent f189c5cb8ddde0c01838f2b3bc7650e86c097a14 author James Bottomley Tue, 28 Jun 2005 19:18:21 -0500 committer James Bottomley Sun, 28 Aug 2005 21:34:11 -0500 [SCSI] fix 3ware raid emulated commands The 3ware emulated commands all expect they are executing in the use_sg == 0 case, which isn't true either in the block layer rework or an SG_IO ioctl. Fix this by adding the correct kmapping of the first element in the sg list. Signed-off-by: James Bottomley -------------------------- commit f189c5cb8ddde0c01838f2b3bc7650e86c097a14 tree e7032760509cdb7185fae574ac070f6dfeda8a3e parent 1ccb48bb163853c24840c0a50c2a6df1affe029c author Christoph Hellwig Sun, 19 Jun 2005 11:32:53 +0200 committer James Bottomley Sun, 28 Aug 2005 21:34:10 -0500 [SCSI] comment cleanup for spi_execute Signed-off-by: James Bottomley -------------------------- commit 1ccb48bb163853c24840c0a50c2a6df1affe029c tree db7296e294cef3008140404e3047c3adce6f5149 parent 84743bbcf9fc3767aa33f769898432538281e6dc author akpm@osdl.org Sun, 26 Jun 2005 14:12:51 -0700 committer James Bottomley Sun, 28 Aug 2005 21:34:09 -0500 [SCSI] fix C syntax problem in scsi_lib.c Older gcc's require variable definitions at the beginning of a block. Signed-off-by: Andrew Morton Signed-off-by: James Bottomley -------------------------- commit 84743bbcf9fc3767aa33f769898432538281e6dc tree a7cf1382f4f77be9e428a7982f7a90f9c0589816 parent 820732b501a5bbdd3bde1263f391891e21b5ed8c author James Bottomley Mon, 13 Jun 2005 08:37:10 -0500 committer James Bottomley Sun, 28 Aug 2005 21:34:08 -0500 [SCSI] convert ch to use scsi_execute_req I also tinkered with it's sense recognition routines to make them take scsi_sense_hdr structures instead of raw sense data. Signed-off-by: James Bottomley -------------------------- commit 820732b501a5bbdd3bde1263f391891e21b5ed8c tree caf927bfbc9bd83ae0812e02d59456117106c97c parent ea73a9f23906c374b697cd5b0d64f6dceced63de author James Bottomley Mon, 13 Jun 2005 08:21:29 -0500 committer James Bottomley Sun, 28 Aug 2005 21:34:07 -0500 [SCSI] convert sr to scsi_execute_req This follows almost the identical model to sd, except that there's one ioctl which returns raw sense data, so it had to use scsi_execute() instead. Signed-off-by: James Bottomley -------------------------- commit ea73a9f23906c374b697cd5b0d64f6dceced63de tree c000be3180caccc6d484aad0f82f58d733358622 parent 33aa687db90dd8541bd5e9a762eebf880eaee767 author James Bottomley Sun, 28 Aug 2005 21:33:52 -0500 committer James Bottomley Sun, 28 Aug 2005 21:33:52 -0500 [SCSI] convert sd to scsi_execute_req (and update the scsi_execute_req API) This one removes struct scsi_request entirely from sd. In the process, I noticed we have no callers of scsi_wait_req who don't immediately normalise the sense, so I updated the API to make it take a struct scsi_sense_hdr instead of simply a big sense buffer. Signed-off-by: James Bottomley -------------------------- commit 33aa687db90dd8541bd5e9a762eebf880eaee767 tree dac741e1f3f43a1de2433a21b874a093783717f3 parent 1cf72699c1530c3e4ac3d58344f6a6a40a2f46d3 author James Bottomley Sun, 28 Aug 2005 21:31:14 -0500 committer James Bottomley Sun, 28 Aug 2005 21:31:14 -0500 [SCSI] convert SPI transport class to scsi_execute This one's slightly more difficult. The transport class uses REQ_FAILFAST, so another interface (scsi_execute) had to be invented to take the extra flag. Also, the sense functions are shifted around to allow spi_execute to place data directly into a struct scsi_sense_hdr. With this change, there's probably a lot of unnecessary sense buffer allocation going on which we can fix later. Signed-off-by: James Bottomley -------------------------- commit 1cf72699c1530c3e4ac3d58344f6a6a40a2f46d3 tree 501f88d32efe275560c2df1f6c7c6bacf72af4cf parent 7a93aef7fbac6f4db40b6fec5c0c6b654ae7a93c author James Bottomley Sun, 28 Aug 2005 21:27:01 -0500 committer James Bottomley Sun, 28 Aug 2005 21:27:01 -0500 [SCSI] convert the remaining mid-layer pieces to scsi_execute_req After this, we just have some drivers, all the ULDs and the SPI transport class using scsi_wait_req(). Signed-off-by: James Bottomley -------------------------- commit 7a93aef7fbac6f4db40b6fec5c0c6b654ae7a93c tree 4cd7aae38012dfc1ff6c62be20ef8840e56d8383 parent 392160335c798bbe94ab3aae6ea0c85d32b81bbc parent 8224bfa84d510630b40ea460b2bb380c91acb8ae author James Bottomley Sun, 28 Aug 2005 21:18:35 -0500 committer James Bottomley Sun, 28 Aug 2005 21:18:35 -0500 Merge HEAD from ../scsi-misc-2.6-tmp -------------------------- commit 51490c89f95b8581782e9baa855da166441852be tree 3be27d5e30c114d5d69fe21a4a079a64f2016354 parent 8224bfa84d510630b40ea460b2bb380c91acb8ae author Pete Zaitcev Wed, 06 Jul 2005 08:18:08 -0700 committer James Bottomley Sun, 28 Aug 2005 21:14:12 -0500 [SCSI] sr.c: Fix getting wrong size Here's the problem. Try to do this on 2.6.12: - Kill udev and HAL - Insert a CD-ROM into a SCSI or USB CD-ROM drive - Run dd if=/dev/scd0 - cat /sys/block/sr0/size - Eject the CD, insert a different one - Run dd if=/dev/scd0 This is likely to do "access beyond the end of device", if you let it - cat /sys/block/sr0/size This shows the size of a previous CD, even though dd was supposed to revalidate the device. - Run dd if=/dev/scd0 The second run of dd works correctly! The bug was introduced in 2.5.31, when Al fixes the recursive opens in partitioning. Before, the code worked like this: - Block layer called cdrom_open directly - cdrom_open called sr_open - sr_open called check_disk_change - check_disk_change called sr_media_change - sr_media_change did cd->needs_disk_change=1 - before returning sr_open tested cd->needs_disk_change and called get_sector_size. In 2.6.12, the check_disk_change is called from cdrom_open only. Thus: - Block layer calls sr_bd_open - sr_bd_open calls cdrom_open - cdrom_open calls sr_open - sr_open tests cd->needs_disk_change, which wasn't set yet; returns - cdrom_open calls check_disk_change - check_disk_change calls sr_media_change - sr_media_change does cd->needs_disk_change=1, but nobody cares Acked by: Alexander Viro Signed-off-by: James Bottomley -------------------------- commit 8224bfa84d510630b40ea460b2bb380c91acb8ae tree 2bfb5eda755e307e6c96a587bb30a48714f3956a parent de540a53f2f7b68a48c3021e5ab78ea49f6cf21c author Dave C Boutcher Tue, 23 Aug 2005 00:38:26 -0500 committer James Bottomley Sun, 28 Aug 2005 21:14:11 -0500 [SCSI] ibmvscsi timeout fix This patch fixes a long term borkenness in ibmvscsi where we were using the wrong timeout field from the scsi command (and using the wrong units.) Now broken by the fact that the scsi_cmnd timeout field is gone entirely. This only worked before because all the SCSI targets assumed that 0 was default. Signed-off-by: Dave Boutcher Signed-off-by: James Bottomley -------------------------- commit de540a53f2f7b68a48c3021e5ab78ea49f6cf21c tree 9c4c2bfea134ad9a457b391bf389106f44a71449 parent caca1779870b1bcc0fb07e48ebd2403901f356b8 author Adrian Bunk Sat, 20 Aug 2005 21:27:27 +0200 committer James Bottomley Sun, 28 Aug 2005 21:14:10 -0500 [SCSI] drivers/scsi/constants.c should include scsi_dbg.h C files should include the files with the prototypes for their global functions. Signed-off-by: Adrian Bunk Signed-off-by: James Bottomley -------------------------- commit caca1779870b1bcc0fb07e48ebd2403901f356b8 tree 69ec4dfa0927096cca15167c04150637fad66de6 parent be042f240a8528b8f6b741a484cdbbf515698388 author James Bottomley Wed, 17 Aug 2005 03:26:10 -0500 committer James Bottomley Sun, 28 Aug 2005 21:14:09 -0500 [SCSI] add missing attribute container function prototype attribute_container_classdev_to_container is an exported function of the attribute_container.c file. However, there's no prototype for it. Now I actually want to use it, so add one. Signed-off-by: James Bottomley -------------------------- commit be042f240a8528b8f6b741a484cdbbf515698388 tree 2015cb8448cdfb0350cfd582c660535e4242fed0 parent 3b2946cc96bfafa90a555c70b2e876cbbd0fae98 author Dave C Boutcher Tue, 16 Aug 2005 02:52:58 -0500 committer James Bottomley Sun, 28 Aug 2005 21:14:08 -0500 [SCSI] ibmvscsi eh locking With the removal of the spinlocking around eh calls, we need to add a little more locking back in, otherwise we do some naked list manipulation. Signed-off-by: Dave Boutcher Signed-off-by: James Bottomley -------------------------- commit 3b2946cc96bfafa90a555c70b2e876cbbd0fae98 tree 204bd462cf3e484173fea17724ed0bfa68fc614c parent ebd8bb7647e908e8654e565fa289b0300f9f8fa7 author Mark Haverkamp Tue, 16 Aug 2005 00:50:24 -0700 committer James Bottomley Sun, 28 Aug 2005 21:14:07 -0500 [SCSI] aacraid: Fix aacraid probe breakage (updated) This patch fixes the bad assumption of the aacraid driver with use_sg. I used the 3w-xxxx driver fix as a guide for this. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit ebd8bb7647e908e8654e565fa289b0300f9f8fa7 tree a2afebb1cdcb6309e2d1bc5e8c39e7895ade9236 parent 975f24bdc7d3833875309509abbc7da2b2a28234 author James Bottomley Tue, 16 Aug 2005 02:13:19 -0500 committer James Bottomley Sun, 28 Aug 2005 21:14:06 -0500 [SCSI] fix transport class corner case after rework If your transport class sets the ATTRIBUTE_CONTAINER_NO_CLASSDEVS flag, then its configure method never gets called. This patch fixes that so that the configure method is called with a NULL classdev. Also remove a spurious inverted comma in the transport_class comments. Signed-off-by: James Bottomley -------------------------- commit 392160335c798bbe94ab3aae6ea0c85d32b81bbc tree ce664010089283f464d88cd89c11a60d35923851 parent 8e6401187ef7fb1edc2740832b48bf47ed2c90f2 author James Bottomley Thu, 16 Jun 2005 04:48:29 -0500 committer James Bottomley Sun, 28 Aug 2005 20:46:40 -0500 [SCSI] use scatter lists for all block pc requests and simplify hw handlers Original From: Mike Christie Add scsi_execute_req() as a replacement for scsi_wait_req() Fixed up various pieces (added REQ_SPECIAL and caught req use after free) Signed-off-by: James Bottomley -------------------------- commit 8e6401187ef7fb1edc2740832b48bf47ed2c90f2 tree af64a510d254c8c96f662c3e3ba5039119765b1b parent e537a36d528053f6b9dbe6c88e763e835c0d3517 author James Bottomley Thu, 16 Jun 2005 04:16:09 -0500 committer James Bottomley Sun, 28 Aug 2005 20:46:39 -0500 update scsi_wait_req to new format for blk_rq_map_kern() Signed-off-by: James Bottomley -------------------------- commit e537a36d528053f6b9dbe6c88e763e835c0d3517 tree 5c3a30bec263cb62538f08834db5e1cfec64c265 parent 31151ba2cef171344beac254e65bd7e00138bb0d author James Bottomley Sun, 05 Jun 2005 12:07:14 -0500 committer James Bottomley Sun, 28 Aug 2005 20:45:34 -0500 [SCSI] use scatter lists for all block pc requests and simplify hw handlers Here's the proof of concept for this one. It converts scsi_wait_req to do correct REQ_BLOCK_PC submission (and works nicely in my setup). The final goal should be to eliminate struct scsi_request, but that can't be done until the character submission paths of sg and st are also modified. There's some loss of functionality to this: retries are no longer controllable (except by setting REQ_FASTFAIL) and the wait_req API needs to be altered, but it looks very nice. Signed-off-by: James Bottomley -------------------------- commit 31151ba2cef171344beac254e65bd7e00138bb0d tree a8f9cd3c0395656d974125c0ca7ed635aacddeee parent 3d52acb34247816c453f94596e6c7fc4499b76dc parent 73747aed04d3b3fb694961d025f81863b99c6898 author James Bottomley Sun, 28 Aug 2005 20:43:07 -0500 committer James Bottomley Sun, 28 Aug 2005 20:43:07 -0500 fix mismerge in ll_rw_blk.c -------------------------- commit 975f24bdc7d3833875309509abbc7da2b2a28234 tree 392b11c5c82fcce7d279e64b6c02398855c4c706 parent 85a46523ff68aa0e4d2477c51075ffd9fc7e7a14 author Christoph Hellwig Mon, 15 Aug 2005 13:29:55 +0200 committer James Bottomley Mon, 15 Aug 2005 19:19:23 -0500 [SCSI] aiclib remove dead remove lots of completely dead code from aiclib, there's not a lot left and even what's left is rather useless. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley -------------------------- commit 85a46523ff68aa0e4d2477c51075ffd9fc7e7a14 tree c465c274ffe0e4118ed46ad4e0e09dca975aeb1f parent d46b1d549e1414d673e0ec18219f4f5e30d5f3f5 author Christoph Hellwig Mon, 15 Aug 2005 13:28:46 +0200 committer James Bottomley Mon, 15 Aug 2005 19:18:55 -0500 [SCSI] aic79xx: sane pci probing remove ahd_tailq and do sane pci probing. ported over from aic7xxx. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley -------------------------- commit d46b1d549e1414d673e0ec18219f4f5e30d5f3f5 tree b4847d520aa5fdfa9d80dc848407bd7d89d05342 parent d0a7e574007fd547d72ec693bfa35778623d0738 author Christoph Hellwig Mon, 15 Aug 2005 13:27:39 +0200 committer James Bottomley Mon, 15 Aug 2005 19:18:12 -0500 [SCSI] aic79xx: remove some dead code remove some dead cruft, as done already in aic7xxx Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley -------------------------- commit d0a7e574007fd547d72ec693bfa35778623d0738 tree 3457bdf4e8eaf870971aab03c99c31534ba85658 parent 10c1b88987d618f4f89c10e11e574c76de73b5e7 author James Bottomley Mon, 15 Aug 2005 03:09:01 -0500 committer James Bottomley Mon, 15 Aug 2005 03:21:27 -0500 [SCSI] correct transport class abstraction to work outside SCSI I recently tried to construct a totally generic transport class and found there were certain features missing from the current abstract transport class. Most notable is that you have to hang the data on the class_device but most of the API is framed in terms of the generic device, not the class_device. These changes are two fold - Provide the class_device to all of the setup and configure APIs - Provide and extra API to take the device and the attribute class and return the corresponding class_device Signed-off-by: James Bottomley -------------------------- commit 10c1b88987d618f4f89c10e11e574c76de73b5e7 tree 21b45648425c43f6a392afc0da800524608c7caf parent 3a4f5c60dbe1978580ea03c1aff353d1e63d1638 author James Bottomley Mon, 15 Aug 2005 00:34:06 -0500 committer James Bottomley Mon, 15 Aug 2005 00:42:25 -0500 [SCSI] add ability to deny binding to SPI transport class This patch is necessary if we begin exposing underlying physical disks (which can attach to the SPI transport class) of the hardware RAID cards, since we don't want any SPI parameters binding to the RAID devices. Signed-off-by: James Bottomley -------------------------- commit 3a4f5c60dbe1978580ea03c1aff353d1e63d1638 tree 90a45510cbe9e03b02f44f4b135803110a5dfdb7 parent 0336ee5aed1f9a5a6a04e3deabd7797dc193ccd3 author James Bottomley Sat, 13 Aug 2005 19:42:45 -0500 committer James Bottomley Sat, 13 Aug 2005 19:42:45 -0500 [SCSI] aic7xxx: lost multifunction flags handling From: Christoph Hellwig Multi-function cards need to inherit the PCI flags from the master PCI device. Signed-off-by: James Bottomley -------------------------- commit 0336ee5aed1f9a5a6a04e3deabd7797dc193ccd3 tree 12da0bcd4d7a6fe42c5f0f573fea2b8f87b6cff9 parent 6becdff3bcaff1b89c392cf0630dcb5759704492 author akpm@osdl.org Tue, 09 Aug 2005 11:49:48 -0700 committer James Bottomley Fri, 12 Aug 2005 22:28:10 -0500 [SCSI] fix warning in aic7770.c From: "Martin J. Bligh" drivers/scsi/aic7xxx/aic7770.c: In function `aic7770_config': drivers/scsi/aic7xxx/aic7770.c:129: warning: unused variable `l' Signed-off-by: Andrew Morton Signed-off-by: James Bottomley -------------------------- commit 6becdff3bcaff1b89c392cf0630dcb5759704492 tree 7686ea80865e30f79fe0360540e1eb6cd9ac7485 parent 3a1c1d446b7cac6ddd8f6b1f3254ccffe87f1751 author akpm@osdl.org Tue, 09 Aug 2005 14:17:03 -0700 committer James Bottomley Fri, 12 Aug 2005 22:27:44 -0500 [SCSI] fix warning in scsi_softirq From: Andrew Morton drivers/scsi/scsi.c: In function `scsi_softirq': drivers/scsi/scsi.c:814: warning: int format, long int arg (arg 4) Signed-off-by: Andrew Morton Signed-off-by: James Bottomley -------------------------- commit 3a1c1d446b7cac6ddd8f6b1f3254ccffe87f1751 tree 419e336ec5ca884cc8b11cebfd5be30262078583 parent 9909b79e3d533b422c6c72945da35aef124dbce1 author James.Smart@Emulex.Com Thu, 11 Aug 2005 21:42:35 -0400 committer James Bottomley Fri, 12 Aug 2005 22:09:57 -0500 [SCSI] Add Emulex as maintainer of lpfc SCSI driver Signed-off-by: James Bottomley -------------------------- commit 9909b79e3d533b422c6c72945da35aef124dbce1 tree fc7d4cf9f2f1fa7d7ddefb272583a844120328cf parent 918865230e55b1fece2d8edec39d46c00626590b author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:03:17 -0400 committer James Bottomley Fri, 12 Aug 2005 22:09:32 -0500 [SCSI] lpfc driver 8.0.30 : update version to 8.0.30 Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit 918865230e55b1fece2d8edec39d46c00626590b tree db1f8660dba0b448b1a4150d44a084dafaf5253e parent ea84c3f74df646a0897e95c78147190517a751a9 author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:03:09 -0400 committer James Bottomley Fri, 12 Aug 2005 22:09:01 -0500 [SCSI] lpfc driver 8.0.30 : convert to use of int_to_scsilun() Replace use of lpfc_put_lun with midlayer's int_to_scsilun Remove driver's local definition of lpfc_put_lun (which converts an int back to a 64-bit LUN) and replace it's use with the recently added int_to_scsilun function provided by the midlayer. Note: Embedding midlayer structure in our structure caused need for more files to include midlayer headers. Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit ea84c3f74df646a0897e95c78147190517a751a9 tree ab04eda0ed5763908dfbb5803e44052e53607f40 parent f888ba3ce77c66bece3d804caf7d559838209a4a author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:02:30 -0400 committer James Bottomley Fri, 12 Aug 2005 22:08:54 -0500 [SCSI] lpfc driver 8.0.30 : dev_loss and nodev timeouts Fix handling of the dev_loss and nodev timeouts. Symptoms: when remote port disappears for a period of time longer then either nodev_tmo or dev_loss_tmo, the lpfc driver worker thread will stall removing that remote port. Cause: removing remote port involves un-blocking and sync-ing corresponding block device queue. But corresponding node in the lpfc driver is still in the NPR(?node port recovery?) state and mid-layer gets SCSI_MLQUEUE_HOST_BUSY as a return value when it is trying to call queuecommand() with command for that node (AKA remote port) Fix: Instead of returning SCSI_MLQUEUE_HOST_BUS from queuecommand() for nodes in NPR states complete it with retry-able error code DID_BUS_BUSY Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit f888ba3ce77c66bece3d804caf7d559838209a4a tree 7bdd2439b758199b84eee084f6e5b184dfc28b75 parent 69859dc47744430ecda16522b0791b6d17e3fa93 author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:03:01 -0400 committer James Bottomley Fri, 12 Aug 2005 22:08:48 -0500 [SCSI] lpfc driver 8.0.30 : fix get_stats panic Fix panic in lpfc_get_stats() Symptoms: Panic on sysfs stats access Cause: In lpfc_get_stats() we are writing to memory that we do not own. Fix: Fix our stats structure allocation. Embed phba->link_stats in struct lpfc_hba and stop treating it like rogue structure. Note: Embedding midlayer/transport structure in our structure caused need for more files to include midlayer/transport headers. Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit 69859dc47744430ecda16522b0791b6d17e3fa93 tree 9a0caa381b4302e4bd29f67cff2805a9198f4ab9 parent 8cbdc5fffa15d5c573e2531c6f533822d08b6b0f author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:02:37 -0400 committer James Bottomley Fri, 12 Aug 2005 22:08:40 -0500 [SCSI] lpfc driver 8.0.30 : task mgmt bit clearing Clear task management bits when preparing SCSI commands In lpfc_scsi_prep_cmnd, clear the task management bits (fcpCntl2 member in the fcp_cmd structure) when preparing regular SCSI commands. Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit 8cbdc5fffa15d5c573e2531c6f533822d08b6b0f tree 3bd3c4f60e0cbb5c316dad3789abaf4fc1facbd0 parent 483f05f0134e60b724bc3678507c1def860c56d5 author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:02:50 -0400 committer James Bottomley Fri, 12 Aug 2005 22:08:30 -0500 [SCSI] lpfc driver 8.0.30 : fix lip/cablepull panic Fix panic on lip and cable pull Symptoms: Panic on lip or cable pull Cause: Use after free of nlp in lpfc_nlp_remove() Fix: Do not make FC transport calls after a node is removed. Transport calls are disabled by ignoring the initial delete transition. Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit 483f05f0134e60b724bc3678507c1def860c56d5 tree d9bd0a9261a2e9e37a3c8149c66439e9cf8b01bd parent 507caac75e86bd041c5462e5e988fb7138e21d79 author James.Smart@Emulex.Com Wed, 10 Aug 2005 23:02:45 -0400 committer James Bottomley Fri, 12 Aug 2005 22:08:13 -0500 [SCSI] lpfc driver 8.0.30 : fix iocb reuse initialization IOCB BDE not getting fully initialized during reuse Symptoms: Driver gets Status 3 and Reason 0x13 on IOCB completions. Cause: The IOCB bpl.bdeSize and bdeFlags are not getting initialized on reuse. Fix: Reinitialize these fields in prep_dma each time an IOCB is used. Signed-off-by: James Smart Signed-off-by: James Bottomley -------------------------- commit 507caac75e86bd041c5462e5e988fb7138e21d79 tree f06bcce2cd9230e19fe20bc0c884f03fc0779752 parent a80b3424d9fde3c4b6d62adaf6dda78128dc5c27 author James Bottomley Tue, 09 Aug 2005 22:57:11 -0500 committer James Bottomley Fri, 12 Aug 2005 21:40:50 -0500 [SCSI] Make the HSG80 a REPORTLUN2 device From: Steve Wilcox In order to properly report LUN's > 7, the DEC HSG80 definition in scsi_devinfo.c needs to include BLIST_REPORTLUN2 rather than BLIST_SPARSELUN. I've tested this change with several HSG firmware revisions and with both Emulex and Qlogic HBA's. Signed-off-by: James Bottomley -------------------------- commit a80b3424d9fde3c4b6d62adaf6dda78128dc5c27 tree 0c04185b806fa2239dea2ff681d0fec8db746be9 parent 0d7323c865608dffb1ed39ec2f3841697ec3e009 author James Bottomley Tue, 09 Aug 2005 05:06:50 -0500 committer James Bottomley Tue, 09 Aug 2005 22:19:25 -0500 [SCSI] aic79xx: fix boot panic with no hardware There's a spurious (and illegal since it's marked __exit) call to ahc_linux_exit() in ahc_linux_init() which causes a double list deletion of the transport class; remove it. Signed-off-by: James Bottomley -------------------------- commit 0d7323c865608dffb1ed39ec2f3841697ec3e009 tree 71eb26b34b7e42404ed2431fe782ef308e5886db parent 8e87c2f118d40d2dc2f5d0140818e8cd023b13e1 author Dave Jones Tue, 09 Aug 2005 03:01:43 -0400 committer James Bottomley Tue, 09 Aug 2005 04:08:45 -0500 [SCSI] blacklist addition. When run on a kernel that scans all LUNs, a certain crappy scsi scanner reports the same LUN over and over.. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155457 Aparently they were so shamed by this, they chose to remain anonymous. Though it seems the blacklist code handles anonymous vendors just fine. Signed-off-by: Dave Jones Signed-off-by: James Bottomley -------------------------- commit 8e87c2f118d40d2dc2f5d0140818e8cd023b13e1 tree dc1528926d915e09b0c09200ea3ccf261e3a0c1c parent b21a41385118f9a6af3cd96ce71090c5ada52eb5 author Mark Haverkamp Tue, 09 Aug 2005 04:20:43 -0700 committer James Bottomley Tue, 09 Aug 2005 03:01:33 -0500 [SCSI] aacraid: adapter support update Received from Mark Salyzyn This patch adds the product ID for the ICP9067MA adapter. The entries for the ICP9085LI, ICP5085BR, IBM8k & ASR4810SAS were incorrect and would not initialize the adapters correctly. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit b21a41385118f9a6af3cd96ce71090c5ada52eb5 tree 4eb9124ae72e1a905094c259465718793698e603 parent f03a567054fea4f9d43c50ec91338266c0bd588d author James Bottomley Sat, 06 Aug 2005 07:45:40 -0500 committer James Bottomley Mon, 08 Aug 2005 19:55:39 -0500 [SCSI] add global timeout to the scsi mid-layer There are certain rogue devices (and the aic7xxx driver) that return BUSY or QUEUE_FULL forever. This code will apply a global timeout (of the total number of retries times the per command timer) to a given command. If it is exceeded, the command is completed regardless of its state. The patch also removes the unused field in the command: timeout and timeout_total. This solves the problem of detecting an endless loop in the mid-layer because of BUSY/QUEUE_FULL bouncing, but will not recover the device. In the aic7xxx case, the driver can be recovered by sending a bus reset, so possibly this should be tied into the error handler? Signed-off-by: James Bottomley -------------------------- commit f03a567054fea4f9d43c50ec91338266c0bd588d tree 97b3258660d52dc0359d50f27b5f593c935c9012 parent 5262d0851cc6692390ee1aa2c55f57f3bfd0a7c7 author Kai Makisara Tue, 02 Aug 2005 13:40:47 +0300 committer James Bottomley Mon, 08 Aug 2005 19:33:48 -0500 [SCSI] drivers/scsi/st.c: add reference count and related fixes I have rediffed the patch against 2.6.13-rc5, done a couple of cosmetic cleanups, and run some tests. Brian King has acknowledged that it fixes the problems he has seen. Seems mature enough for inclusion into 2.6.14 (or later)? Nate's explanation of the changes: I've attached patches against 2.6.13rc2. These are basically identical to my earlier patches, as I found that all issues I'd seen in earlier kernels still existed in this kernel. To summarize, the changes are: (more details in my original email) - add a kref to the scsi_tape structure, and associate reference counting stuff - set sr_request->end_io = blk_end_sync_rq so we get notified when an IO is rejected when the device goes away - check rq_status when IOs complete, else we don't know that IOs rejected for a dead device in fact did not complete - change last_SRpnt so it's set before an async IO is issued (in case st_sleep_done is bypassed) - fix a bogus use of last_SRpnt in st_chk_result Signed-off-by: Nate Dailey Signed-off-by: Kai Makisara Signed-off-by: James Bottomley -------------------------- commit 5262d0851cc6692390ee1aa2c55f57f3bfd0a7c7 tree 9acc17c71fd4e6387ea822564214b045858e716e parent a2ae85df80a5b996a05d6d2ffc9bf97797e93ec6 author James Bottomley Sat, 06 Aug 2005 02:31:35 -0500 committer James Bottomley Mon, 08 Aug 2005 19:14:37 -0500 [SCSI] aacraid: correct use of cmd->timeout field The cmd->timeout field has been obsolete for a while now. While looking to remove it, I came across this use in the aacraid driver. It looks like you want to initialise the firmware with the current timeout of the command (in seconds), so the value I think you should be using is cmd->timeout_per_command. Acked by: Mark Haverkamp Acked by: Mark Salyzyn Signed-off-by: James Bottomley -------------------------- commit a2ae85df80a5b996a05d6d2ffc9bf97797e93ec6 tree 747c43febb3fb85668810a6996dccaf7044d337e parent 0e68c00373f61fcdee453f6c9878e3390fc0f0ce author akpm@osdl.org Sun, 07 Aug 2005 13:32:07 -0700 committer James Bottomley Sun, 07 Aug 2005 19:34:29 -0500 [SCSI] aic79xx: needs to select SPI_TRANSPORT_ATTRS without it you get this failure: drivers/built-in.o(.text+0xdcccd): In function `ahd_linux_slave_configure': drivers/scsi/aic7xxx/aic79xx_osm.c:636: undefined reference to `spi_dv_device' drivers/built-in.o(.text+0xdd7b1): In function `ahd_send_async': drivers/scsi/aic7xxx/aic79xx_osm.c:1652: undefined reference to `spi_display_xfer_agreement' drivers/built-in.o(.init.text+0x7b4d): In function `ahd_linux_init': drivers/scsi/aic7xxx/aic79xx_osm.c:2765: undefined reference to `spi_attach_transport' drivers/built-in.o(.init.text+0x7c94):drivers/scsi/aic7xxx/aic79xx_osm.c:2774: undefined reference to `spi_release_transport' drivers/built-in.o(.exit.text+0x72c): In function `ahd_linux_exit': drivers/scsi/aic7xxx/aic79xx_osm.c:2783: undefined reference to `spi_release_transport' Signed-off-by: Andrew Morton Signed-off-by: James Bottomley -------------------------- commit 0e68c00373f61fcdee453f6c9878e3390fc0f0ce tree 7172e827bccfa4b9c04fc11ddc54ae34a6376562 parent 12a26d0879d8a4502425037e9013b1f64ed669b7 author Mark Haverkamp Thu, 04 Aug 2005 05:39:49 -0700 committer James Bottomley Sat, 06 Aug 2005 02:57:56 -0500 [SCSI] aacraid: sgraw command support Received from Mark Salyzyn from Adaptec: This patch adds support for the new raw io command. This new command offers much larger io commands, is more friendly to the internal firmware structure requiring less translation efforts by the firmware and offers support for targets greater than 2TB (patch to support >2TB will be sent in the future). Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit 12a26d0879d8a4502425037e9013b1f64ed669b7 tree 26e6fc63e82f9baf0d615a89a2da9000c85a0cce parent e53cb35aaefb83de695e3fd305b9cfabd5bf8c86 author Mark Haverkamp Thu, 04 Aug 2005 05:39:25 -0700 committer James Bottomley Sat, 06 Aug 2005 02:52:42 -0500 [SCSI] aacraid: aif registration timeout fix Received from Mark Salyzyn from Adaptec: If the Adapter is quiet and does not produce an AIF event packets to be picked up by the management applications for longer than the timeout interval of two minutes, the cleanup code that deals with aging out registrants could erroneously drop the registration. The timeout is there to clean up should the management application die and fail to poll for updated AIF event packets. Moving the timer update from the ioctl code that delivers an AIF to the polling registrant to the bottom of the ioctl means the timeout is reset with any management application polling activity regardless if an AIF is delivered or not removing the erroneous timeout cleanups. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit e53cb35aaefb83de695e3fd305b9cfabd5bf8c86 tree a867bcdd28f7e0d7e735b10086e02337875bdbaa parent bd1aac809ddbcf7772cfd809d8cfb29c729c6cf9 author Mark Haverkamp Thu, 04 Aug 2005 05:39:09 -0700 committer James Bottomley Sat, 06 Aug 2005 02:51:57 -0500 [SCSI] aacraid: remove duplicate io callback code Received from Mark Salyzyn from Adaptec: This patch removes the duplicate code in the write_callback command completion handler, and renames read_callback to io_callback. Optimized the lba calculation into the debug print routine macro to optimize the i/o code path. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit bd1aac809ddbcf7772cfd809d8cfb29c729c6cf9 tree 7ec25f58f22929ee48495addf8facda797668852 parent c7f476023f57145357df32346b7de9202ce47d5f author Mark Haverkamp Thu, 04 Aug 2005 05:39:01 -0700 committer James Bottomley Sat, 06 Aug 2005 02:51:11 -0500 [SCSI] aacraid: driver shutdown method Add in pci shutdown method so that the adapter shuts down correctly and flushes its cache. Shutdown should also disable the adapter's interrupt when shutdown (in particularly if the driver is rmmod'd) to prevent spurious hardware activities. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit c7f476023f57145357df32346b7de9202ce47d5f tree a73d27c245d024ea9e0e0651d3ca524ef74ba9b5 parent bed30de47b034b5f28fb7db2fae4860b9d9c0622 author Mark Haverkamp Thu, 04 Aug 2005 05:38:55 -0700 committer James Bottomley Sat, 06 Aug 2005 02:50:26 -0500 [SCSI] aacraid: driver version update Received from Mark Salyzyn from Adaptec. Fixes a bug in check_revision. It should return the driver version not the firmware version. Update driver version number. Update driver version string. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit bed30de47b034b5f28fb7db2fae4860b9d9c0622 tree 1dd29e4f8ae3122d8cc642523a6f0cd2ca70bfd3 parent fc789a93994858b5e5a46afb96d0dcf6cc1b6f08 author Mark Haverkamp Thu, 04 Aug 2005 05:38:51 -0700 committer James Bottomley Sat, 06 Aug 2005 02:49:46 -0500 [SCSI] aacraid: interupt mitigation Received from Mark Salyzyn from Adaptec: If more than two commands are outstanding to the controller, there is no need to notify the adapter via a PCI bus transaction of additional commands added into the queue; it will get to them when it works through the produce/consumer indexes. This reduced the PCI traffic in the driver to submit a command to the queue to near zero allowing a significant number of commands to be turned around with no need to block for the PCI bridge to flush the notify request to the adapter. Interrupt mitigation has always been present in the driver; it was turned off because of a bug that prevented one from realizing the usefulness of the feature. This bug is fixed in this patch. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley -------------------------- commit fc789a93994858b5e5a46afb96d0dcf6cc1b6f08 tree f83fa07a0dc721a41a7e5d984284b823aa39b261 parent 79778a27be4c704552a18cf2a3e8b9e30623acd1 author James Bottomley Sat, 06 Aug 2005 02:24:54 -0500 committer James Bottomley Sat, 06 Aug 2005 02:49:15 -0500 [SCSI] aic7xxx/79xx: fix another potential panic due to a non existent target I ran into this one sending bus resets across the hardware. Signed-off-by: James Bottomley -------------------------- commit 79778a27be4c704552a18cf2a3e8b9e30623acd1 tree 43a3107ead65790b9f5ffa04d54d5daa8904de79 parent 52b5cfb355b2b3274979d25490f190d478ab1fad author James Bottomley Fri, 05 Aug 2005 03:33:22 -0500 committer James Bottomley Fri, 05 Aug 2005 03:41:25 -0500 [SCSI] aic7xxx: upport all sequencer and core fixes from adaptec version 6.3.9 This patch upports all relevant code fixes and bumps the driver version to 7.0 to signify starting a new tree. Signed-off-by: James Bottomley -------------------------- commit 52b5cfb355b2b3274979d25490f190d478ab1fad tree 7e4cf471d0db37af60e13f9461ff5008caeeceec parent 88ff29a4a5a8c4e0ecf375f783be071d1e7e264d author Hannes Reinecke Thu, 04 Aug 2005 09:16:59 +0200 committer James Bottomley Fri, 05 Aug 2005 03:39:55 -0500 [SCSI] aic79xx: fixup DT setting this patch is just a cross-port of the fixup for aic7xxx DT settings. As the same restrictions apply for aic79xx also (DT requires wide transfers) the dt setting routine should be modified equivalently. And an invalid period setting will be caught by ahd_find_syncrate() anyway. Signed-off-by: James Bottomley -------------------------- commit 88ff29a4a5a8c4e0ecf375f783be071d1e7e264d tree d290f846932594341702baeb7b30ae73c86daa71 parent d872ebe4549576e7aab60ed7c746193196381dd0 author James Bottomley Thu, 04 Aug 2005 01:59:04 -0500 committer James Bottomley Thu, 04 Aug 2005 02:22:20 -0500 [SCSI] aic79xx: add hold_mcs to the transport parameters since this card can support the setting, add it to the parameter list. Signed-off-by: James Bottomley -------------------------- commit d872ebe4549576e7aab60ed7c746193196381dd0 tree ad5ef1024415a81f31426879b4b32c17e373d910 parent 3f40d7d6eaadecd48f6d1c0c4a5ad414b992260e author James Bottomley Thu, 04 Aug 2005 01:43:52 -0500 committer James Bottomley Thu, 04 Aug 2005 01:54:55 -0500 [SCSI] add missing hold_mcs parameter to the spi transport class This parameter is important only to people who take the time to tune the margin control settings, otherwise it's completely irrelevant. However, just in case anyone should want to do this, it's appropriate to include the parameter. I don't do anything with it in DV by design, so the parameter will come up as off by default, so if anyone actually wants to play with the margin control settings they'll have to enable it under the spi_transport class first. I also updated the transfer settings display to report all of the PPR settings instead of only DT, IU and QAS Signed-off-by: James Bottomley -------------------------- commit 3f40d7d6eaadecd48f6d1c0c4a5ad414b992260e tree 0728df045096f3afb750e95b772b3dbb391b0e8d parent a4b53a11806f5c0824eb4115b1de8206ed7bb89a author James Bottomley Wed, 03 Aug 2005 23:25:10 -0500 committer James Bottomley Wed, 03 Aug 2005 23:36:52 -0500 [SCSI] aic79xx: fix up transport settings There's a slight problem in the way you've done the transport parameters; reading from the variables actually produces the current settings, not the ones you just set (and there's usually a lag because devices don't renegotiate until the next command goes over the bus). If you set the bit immediately, you get into the situation where the transport parameters report something as being set even if the drive cannot support it. I patched the driver to do it this way and also corrected a panic in the proc routines. Signed-off-by: James Bottomley -------------------------- commit a4b53a11806f5c0824eb4115b1de8206ed7bb89a tree c86d2e9d7359bcf6bea44373d0ced18bb4be453e parent 73a25462100772b72a5d62fd66dff01b53018618 author Hannes Reinecke Mon, 01 Aug 2005 09:52:56 +0200 committer James Bottomley Wed, 03 Aug 2005 21:48:03 -0500 [SCSI] aic79xx: DV parameter settings This patch updates various scsi_transport_spi parameters with the actual parameters used by the driver internally. Domain Validation for all devices should now work properly. Signed-off-by: James Bottomley -------------------------- commit 73a25462100772b72a5d62fd66dff01b53018618 tree de112862069bcef5786b9878ca89bdcda9a0097c parent 60a13213840296b1e32d6781653a0eaa83d04382 author Hannes Reinecke Fri, 22 Jul 2005 16:44:04 +0200 committer James Bottomley Wed, 03 Aug 2005 21:45:14 -0500 [SCSI] aic79xx: update to use scsi_transport_spi This patch updates the aic79xx driver to take advantage of the scsi_transport_spi infrastructure. Patch is quite a mess as some procedures have been reshuffled to be closer to the aic7xxx driver. Rejections fixed and Signed-off-by: James Bottomley -------------------------- commit 60a13213840296b1e32d6781653a0eaa83d04382 tree f1fe8ccfa5336a820796077c546de61145d29905 parent 8d6810d33e5e43b11675190318a81303c601a568 author Hannes Reinecke Fri, 22 Jul 2005 16:42:28 +0200 committer James Bottomley Wed, 03 Aug 2005 21:25:36 -0500 [SCSI] aic79xx: Remove busyq From: Jeff Garzik This patch removes the busyq in aic79xx and uses the command-queue from the midlayer instead. Additionally some dead code is removed. Signed-off-by: Hannes Reinecke Fixed rejections Signed-off-by: James Bottomley -------------------------- commit 8d6810d33e5e43b11675190318a81303c601a568 tree fe8ae190259fe0d0ad17c74e90077950eea31809 parent 7a34766fdcec0c619aa68ace203b934dd7cf9dbc author Christoph Hellwig Mon, 04 Jul 2005 17:49:26 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:52 -0500 [SCSI] qla1280: endianess annotations Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley -------------------------- commit 7a34766fdcec0c619aa68ace203b934dd7cf9dbc tree 41a16c2fb6a6edf9f45e7ffbe23b84c042ba5207 parent 0888f4c3312847eec4814a6d7cdcaaaa9fbd3345 author Christoph Hellwig Mon, 04 Jul 2005 17:49:22 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:51 -0500 [SCSI] qla1280: don't use bitfields for hardware access, parameters Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit 0888f4c3312847eec4814a6d7cdcaaaa9fbd3345 tree 1266e52875e27c859c14f42731854c70b60c6582 parent 5c79d6154f335543ea4c4a555f645a1f76b5d117 author Christoph Hellwig Mon, 04 Jul 2005 17:48:55 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:50 -0500 [SCSI] qla1280: don't use bitfields for hardware access in isp_config Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit 5c79d6154f335543ea4c4a555f645a1f76b5d117 tree 4bde198147590c878fd322c947fc745a55acd429 parent 748422d92a55faadf3184e5aa8487da88c1ee849 author Christoph Hellwig Mon, 04 Jul 2005 17:48:46 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:49 -0500 [SCSI] qla1280: always load microcode we have the most recent microcode, make sure to always load it. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley -------------------------- commit 748422d92a55faadf3184e5aa8487da88c1ee849 tree e6b9054c09a068bfd9f5ff367102e93d2a0d26fe parent d6db3e8d5fe3178776d0a0314e612c3f55e55fb4 author Christoph Hellwig Mon, 04 Jul 2005 17:48:41 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:48 -0500 [SCSI] qla1280: remove SG_SEGMENTS Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit d6db3e8d5fe3178776d0a0314e612c3f55e55fb4 tree 289e8979516098c7b970b4666a8a093c30b7977e parent 2b55cac3d2d9f545c141748d00eae86e2c042ca5 author Christoph Hellwig Mon, 04 Jul 2005 17:48:36 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:46 -0500 [SCSI] qla1280: use SAM_ constants Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit 2b55cac3d2d9f545c141748d00eae86e2c042ca5 tree 84d3fdf015dda660e05c9dbafbc953fa1b42192e parent 8af50dcd22aa0a5840f18276ff10a6977abc3853 author Christoph Hellwig Mon, 04 Jul 2005 17:48:30 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:45 -0500 [SCSI] qla1280: misc cleanups print message tidy ups and some excess brace removal. Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit 8af50dcd22aa0a5840f18276ff10a6977abc3853 tree f42b951cce636d189249c8a915a5d10caaf62a40 parent a6c42741ace2fee235b6902e76f3c86a01d32146 author Christoph Hellwig Mon, 04 Jul 2005 17:48:19 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:44 -0500 [SCSI] qla1280: interupt posting for irq disabling/enabling Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit a6c42741ace2fee235b6902e76f3c86a01d32146 tree ec006ff8cc9d6613f999bcb8a10a8c993cbbb855 parent 47ba39eead9f4495cd6a3eca39d7c73d0f0d61c9 author Christoph Hellwig Mon, 04 Jul 2005 17:48:13 +0200 committer James Bottomley Tue, 02 Aug 2005 21:43:43 -0500 [SCSI] qla1280: remove dead per-host flag variables Signed-off-by: Christoph Hellwig Signed-off-by: Thiemo Seufer Signed-off-by: James Bottomley -------------------------- commit 47ba39eead9f4495cd6a3eca39d7c73d0f0d61c9 tree 49eaf65fda30d8824d9ce79a195c4399e65b6650 parent 82f29467a025f6a2192d281e97fca0be46e905cc author James Bottomley Sat, 30 Jul 2005 21:39:53 -0500 committer James Bottomley Sat, 30 Jul 2005 21:39:53 -0500 [SCSI] add template for scsi_host_set_state() Fixes up some warnings in the tree. Signed-off-by: James Bottomley -------------------------- commit 82f29467a025f6a2192d281e97fca0be46e905cc tree 5cf356ece53caf2936ca85803676b326094f7c38 parent d2c9d9eafa03dbd08a8a439e6c5addb8b1f03b9b author Mike Anderson Fri, 17 Jun 2005 01:14:33 -0700 committer James Bottomley Sat, 30 Jul 2005 21:13:01 -0500 [SCSI] host state model update: mediate host add/remove race Add support to not allow additions to a host when it is being removed. Signed-off-by: Mike Anderson Signed-off-by: James Bottomley -------------------------- commit d2c9d9eafa03dbd08a8a439e6c5addb8b1f03b9b tree 2af0c85e0ffddf593821c961f0a5e729de8c6ccc parent d3301874083874f8a0ac88aa1bb7da6b62df34d2 author Mike Anderson Fri, 17 Jun 2005 01:13:42 -0700 committer James Bottomley Sat, 30 Jul 2005 21:11:37 -0500 [SCSI] host state model update: reimplement scsi_host_cancel Remove the old scsi_host_cancel function as it has not been working for sometime do to the device list possibly being empty when it is called and possible race issues. Add setting of SHOST_CANCEL at the state of beginning of scsi_remove_host. Signed-off-by: Mike Anderson Signed-off-by: James Bottomley -------------------------- commit d3301874083874f8a0ac88aa1bb7da6b62df34d2 tree ceb564fe0a965588f14b441ef0dc93b36953b6b2 parent 5dbffcd83d826a9b42a10afb89b13156dc5b9539 author Mike Anderson Fri, 17 Jun 2005 01:12:38 -0700 committer James Bottomley Sat, 30 Jul 2005 21:10:24 -0500 [SCSI] host state model update: replace old host bitmap state Migrate the current SCSI host state model to a model like SCSI device is using. Signed-off-by: Mike Anderson Rejections fixed up and Signed-off-by: James Bottomley -------------------------- commit 5dbffcd83d826a9b42a10afb89b13156dc5b9539 tree 6803ca890151a325b592d758572d3cc6abded524 parent 0a637a2cec724eeb4649f6d1c07026b72c39ad84 author Adrian Bunk Wed, 27 Jul 2005 15:07:42 -0700 committer James Bottomley Sat, 30 Jul 2005 19:08:21 -0500 [SCSI] git-scsi-misc: drivers/scsi/ch.c: remove devfs stuff It seems very unlikely that this driver will go into any stable kernel before devfs will be removed. Signed-off-by: Adrian Bunk Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: James Bottomley -------------------------- commit 0a637a2cec724eeb4649f6d1c07026b72c39ad84 tree f8984ec42ce7ee2bcd01dab32ad89d89d3028830 parent b0825488a642cadcf39709961dde61440cb0731c author Olaf Hering Tue, 19 Jul 2005 22:04:24 +0200 committer James Bottomley Sat, 30 Jul 2005 19:08:20 -0500 [SCSI] aic byteorder fixes after recent cleanup aic doesnt work anymore after this change which appeared int 2.6.13-rc1: [SCSI] aic7xxx/aic79xx: remove useless byte order macro cruft 2 files did not include byteorder.h, aic died with panic "Unknown opcode encountered in seq program" This patch fixes it for me. Signed-off-by: Olaf Hering Signed-off-by: James Bottomley -------------------------- commit 73747aed04d3b3fb694961d025f81863b99c6898 tree d7cae2a3da1e15dc8c87b0ffbf2608eb8c999cc9 parent 994ca9a19616f0d4161a9e825f0835925d522426 author Christoph Hellwig Mon, 20 Jun 2005 14:21:01 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:21:01 +0200 [PATCH] ll_rw_blk.c kerneldoc updates The recent mapping changes didn't update the kerneldoc appropriately. Original from Christoph Hellwig Signed-off-by: Jens Axboe -------------------------- commit 994ca9a19616f0d4161a9e825f0835925d522426 tree 0998252ed375929dca468440b7486d4c1104757f parent f63eb21b4f32028755b6b9d47e5eb13c18ba0cae author James Bottomley Mon, 20 Jun 2005 14:11:09 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:11:09 +0200 [PATCH] update blk_execute_rq to take an at_head parameter Original From: Mike Christie Modified to split out block changes (this patch) and SCSI pieces. Signed-off-by: Jens Axboe Signed-off-by: James Bottomley -------------------------- commit f63eb21b4f32028755b6b9d47e5eb13c18ba0cae tree e4baa980681027709bf278684b9db4dda3ebc2d6 parent e1f546e185e9d8cb9303d74d1cd5bc704f265384 author Jens Axboe Mon, 20 Jun 2005 14:10:25 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:10:25 +0200 [PATCH] kill 'reading' variable in sg_io(), it isn't used anymore. Signed-off-by: Jens Axboe -------------------------- commit e1f546e185e9d8cb9303d74d1cd5bc704f265384 tree bca12f46d6ea3039896406081826d7db37b0384e parent f1970baf6d74e03bd32072ab453f2fc01bc1b8d3 author James Bottomley Mon, 20 Jun 2005 14:07:17 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:07:17 +0200 [PATCH] The blk_rq_map_user() change missed an update in scsi_ioctl.c Signed-off-by: Jens Axboe -------------------------- commit f1970baf6d74e03bd32072ab453f2fc01bc1b8d3 tree 559898cdf83bd0f93b8a72248c6423a6548fb604 parent dd1cab95f356f1395278633565f198463cf6bd24 author James Bottomley Mon, 20 Jun 2005 14:06:52 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:06:52 +0200 [PATCH] Add scatter-gather support for the block layer SG_IO Signed-off-by: Jens Axboe -------------------------- commit dd1cab95f356f1395278633565f198463cf6bd24 tree ddf12e2fad7c0df0656a10ee6aac3f12a04dbed8 parent b823825e8e09aac6dc1ca362cd5639a87329d636 author Jens Axboe Mon, 20 Jun 2005 14:06:01 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:06:01 +0200 [PATCH] Cleanup blk_rq_map_* interfaces Change the blk_rq_map_user() and blk_rq_map_kern() interface to require a previously allocated request to be passed in. This is both more efficient for multiple iterations of mapping data to the same request, and it is also a much nicer API. Signed-off-by: Jens Axboe -------------------------- commit b823825e8e09aac6dc1ca362cd5639a87329d636 tree f825aa09e088c160d50f2b9e878a287ebf2cb304 parent df46b9a44ceb5af2ea2351ce8e28ae7bd840b00f author Jens Axboe Mon, 20 Jun 2005 14:05:27 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:05:27 +0200 [PATCH] Keep the bio end_io parts inside of bio.c for blk_rq_map_kern() Signed-off-by: Jens Axboe -------------------------- commit df46b9a44ceb5af2ea2351ce8e28ae7bd840b00f tree 30ab71759486f94d60af2283fc55bfffcc22155a parent 8b22c249e7de453961e4d253b19fc2a0bdd65d53 author Mike Christie Mon, 20 Jun 2005 14:04:44 +0200 committer Jens Axboe Mon, 20 Jun 2005 14:04:44 +0200 [PATCH] Add blk_rq_map_kern() Add blk_rq_map_kern which takes a kernel buffer and maps it into a request and bio. This can be used by the dm hw_handlers, old sg_scsi_ioctl, and one day scsi special requests so all requests comming into scsi will have bios. All requests having bios should allow scsi to use scatter lists for all IO and allow it to use block layer functions. Signed-off-by: Jens Axboe --------------------------