Skip to content

Commit d4e0670

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (77 commits) [SCSI] fix crash in scsi_dispatch_cmd() [SCSI] sr: check_events() ignore GET_EVENT when TUR says otherwise [SCSI] bnx2i: Fixed kernel panic due to illegal usage of sc->request->cpu [SCSI] bfa: Update the driver version to 3.0.2.1 [SCSI] bfa: Driver and BSG enhancements. [SCSI] bfa: Added support to query PHY. [SCSI] bfa: Added HBA diagnostics support. [SCSI] bfa: Added support for flash configuration [SCSI] bfa: Added support to obtain SFP info. [SCSI] bfa: Added support for CEE info and stats query. [SCSI] bfa: Extend BSG interface. [SCSI] bfa: FCS bug fixes. [SCSI] bfa: DMA memory allocation enhancement. [SCSI] bfa: Brocade-1860 Fabric Adapter vHBA support. [SCSI] bfa: Brocade-1860 Fabric Adapter PLL init fixes. [SCSI] bfa: Added Fabric Assigned Address(FAA) support [SCSI] bfa: IOC bug fixes. [SCSI] bfa: Enable ASIC block configuration and query. [SCSI] bnx2i: Updated copyright and bump version [SCSI] bnx2i: Modified to skip CNIC registration if iSCSI is not supported ... Fix up some trivial conflicts in: - drivers/scsi/bnx2fc/{bnx2fc.h,bnx2fc_fcoe.c}: Crazy broadcom version number conflicts - drivers/target/tcm_fc/tfc_cmd.c Just trivial cleanups done on adjacent lines
2 parents e498037 + 87045b0 commit d4e0670

96 files changed

Lines changed: 13311 additions & 3194 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,12 @@ L: linux-wireless@vger.kernel.org
15531553
S: Supported
15541554
F: drivers/staging/brcm80211/
15551555

1556+
BROADCOM BNX2FC 10 GIGABIT FCOE DRIVER
1557+
M: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
1558+
L: linux-scsi@vger.kernel.org
1559+
S: Supported
1560+
F: drivers/scsi/bnx2fc/
1561+
15561562
BROCADE BFA FC SCSI DRIVER
15571563
M: Jing Huang <huangj@brocade.com>
15581564
L: linux-scsi@vger.kernel.org
@@ -1775,7 +1781,8 @@ F: include/linux/clk.h
17751781

17761782
CISCO FCOE HBA DRIVER
17771783
M: Abhijeet Joglekar <abjoglek@cisco.com>
1778-
M: Joe Eykholt <jeykholt@cisco.com>
1784+
M: Venkata Siva Vijayendra Bhamidipati <vbhamidi@cisco.com>
1785+
M: Brian Uchino <buchino@cisco.com>
17791786
L: linux-scsi@vger.kernel.org
17801787
S: Supported
17811788
F: drivers/scsi/fnic/

‎block/blk-core.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,9 @@ struct request *blk_get_request(struct request_queue *q, int rw, gfp_t gfp_mask)
839839
{
840840
struct request *rq;
841841

842+
if (unlikely(test_bit(QUEUE_FLAG_DEAD, &q->queue_flags)))
843+
return NULL;
844+
842845
BUG_ON(rw != READ && rw != WRITE);
843846

844847
spin_lock_irq(q->queue_lock);

‎block/blk-exec.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk,
5050
{
5151
int where = at_head ? ELEVATOR_INSERT_FRONT : ELEVATOR_INSERT_BACK;
5252

53+
if (unlikely(test_bit(QUEUE_FLAG_DEAD, &q->queue_flags))) {
54+
rq->errors = -ENXIO;
55+
if (rq->end_io)
56+
rq->end_io(rq, rq->errors);
57+
return;
58+
}
59+
5360
rq->rq_disk = bd_disk;
5461
rq->end_io = done;
5562
WARN_ON(irqs_disabled());

‎drivers/firmware/iscsi_ibft.c‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,11 @@ static mode_t __init ibft_check_initiator_for(void *data, int type)
566566
return rc;
567567
}
568568

569+
static void ibft_kobj_release(void *data)
570+
{
571+
kfree(data);
572+
}
573+
569574
/*
570575
* Helper function for ibft_register_kobjects.
571576
*/
@@ -595,7 +600,8 @@ static int __init ibft_create_kobject(struct acpi_table_ibft *header,
595600
boot_kobj = iscsi_boot_create_initiator(boot_kset, hdr->index,
596601
ibft_kobj,
597602
ibft_attr_show_initiator,
598-
ibft_check_initiator_for);
603+
ibft_check_initiator_for,
604+
ibft_kobj_release);
599605
if (!boot_kobj) {
600606
rc = -ENOMEM;
601607
goto free_ibft_obj;
@@ -610,7 +616,8 @@ static int __init ibft_create_kobject(struct acpi_table_ibft *header,
610616
boot_kobj = iscsi_boot_create_ethernet(boot_kset, hdr->index,
611617
ibft_kobj,
612618
ibft_attr_show_nic,
613-
ibft_check_nic_for);
619+
ibft_check_nic_for,
620+
ibft_kobj_release);
614621
if (!boot_kobj) {
615622
rc = -ENOMEM;
616623
goto free_ibft_obj;
@@ -625,7 +632,8 @@ static int __init ibft_create_kobject(struct acpi_table_ibft *header,
625632
boot_kobj = iscsi_boot_create_target(boot_kset, hdr->index,
626633
ibft_kobj,
627634
ibft_attr_show_target,
628-
ibft_check_tgt_for);
635+
ibft_check_tgt_for,
636+
ibft_kobj_release);
629637
if (!boot_kobj) {
630638
rc = -ENOMEM;
631639
goto free_ibft_obj;

‎drivers/scsi/aha152x.c‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,19 @@ MODULE_PARM_DESC(aha152x1, "parameters for second controller");
422422

423423
#ifdef __ISAPNP__
424424
static struct isapnp_device_id id_table[] __devinitdata = {
425-
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID,
426-
ISAPNP_VENDOR('A','D','P'), ISAPNP_FUNCTION(0x1505), 0 },
427-
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID,
428-
ISAPNP_VENDOR('A','D','P'), ISAPNP_FUNCTION(0x1530), 0 },
425+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1502), 0 },
426+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1505), 0 },
427+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1510), 0 },
428+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1515), 0 },
429+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1520), 0 },
430+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x2015), 0 },
431+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1522), 0 },
432+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x2215), 0 },
433+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1530), 0 },
434+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x3015), 0 },
435+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1532), 0 },
436+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x3215), 0 },
437+
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x6360), 0 },
429438
{ ISAPNP_DEVICE_SINGLE_END, }
430439
};
431440
MODULE_DEVICE_TABLE(isapnp, id_table);

‎drivers/scsi/atari_NCR5380.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,11 @@ static int __init NCR5380_init(struct Scsi_Host *instance, int flags)
892892
return 0;
893893
}
894894

895+
static void NCR5380_exit(struct Scsi_Host *instance)
896+
{
897+
/* Empty, as we didn't schedule any delayed work */
898+
}
899+
895900
/*
896901
* Function : int NCR5380_queue_command (Scsi_Cmnd *cmd,
897902
* void (*done)(Scsi_Cmnd *))
@@ -914,7 +919,6 @@ static int NCR5380_queue_command_lck(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *))
914919
{
915920
SETUP_HOSTDATA(cmd->device->host);
916921
Scsi_Cmnd *tmp;
917-
int oldto;
918922
unsigned long flags;
919923

920924
#if (NDEBUG & NDEBUG_NO_WRITE)

‎drivers/scsi/atari_scsi.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ int atari_scsi_release(struct Scsi_Host *sh)
730730
free_irq(IRQ_TT_MFP_SCSI, sh);
731731
if (atari_dma_buffer)
732732
atari_stram_free(atari_dma_buffer);
733+
NCR5380_exit(sh);
733734
return 1;
734735
}
735736

0 commit comments

Comments
 (0)