diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_hwi.c | 14 | ||||
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi_lib.c | 3 |
3 files changed, 10 insertions, 9 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 93753692c37a..96505e3ab986 100644 --- a/drivers/scsi/bnx2i/bnx2i_hwi.c +++ b/drivers/scsi/bnx2i/bnx2i_hwi.c | |||
@@ -2388,19 +2388,21 @@ static void bnx2i_cm_remote_abort(struct cnic_sock *cm_sk) | |||
2388 | } | 2388 | } |
2389 | 2389 | ||
2390 | 2390 | ||
2391 | static void bnx2i_send_nl_mesg(struct cnic_dev *dev, u32 msg_type, | 2391 | static int bnx2i_send_nl_mesg(void *context, u32 msg_type, |
2392 | char *buf, u16 buflen) | 2392 | char *buf, u16 buflen) |
2393 | { | 2393 | { |
2394 | struct bnx2i_hba *hba; | 2394 | struct bnx2i_hba *hba = context; |
2395 | int rc; | ||
2395 | 2396 | ||
2396 | hba = bnx2i_find_hba_for_cnic(dev); | ||
2397 | if (!hba) | 2397 | if (!hba) |
2398 | return; | 2398 | return -ENODEV; |
2399 | 2399 | ||
2400 | if (iscsi_offload_mesg(hba->shost, &bnx2i_iscsi_transport, | 2400 | rc = iscsi_offload_mesg(hba->shost, &bnx2i_iscsi_transport, |
2401 | msg_type, buf, buflen)) | 2401 | msg_type, buf, buflen); |
2402 | if (rc) | ||
2402 | printk(KERN_ALERT "bnx2i: private nl message send error\n"); | 2403 | printk(KERN_ALERT "bnx2i: private nl message send error\n"); |
2403 | 2404 | ||
2405 | return rc; | ||
2404 | } | 2406 | } |
2405 | 2407 | ||
2406 | 2408 | ||
diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c index be5661707dfa..d2ad3d676724 100644 --- a/drivers/scsi/cxgbi/libcxgbi.c +++ b/drivers/scsi/cxgbi/libcxgbi.c | |||
@@ -825,7 +825,7 @@ unsigned int cxgbi_sock_select_mss(struct cxgbi_sock *csk, unsigned int pmtu) | |||
825 | unsigned int idx; | 825 | unsigned int idx; |
826 | struct dst_entry *dst = csk->dst; | 826 | struct dst_entry *dst = csk->dst; |
827 | 827 | ||
828 | csk->advmss = dst_metric(dst, RTAX_ADVMSS); | 828 | csk->advmss = dst_metric_advmss(dst); |
829 | 829 | ||
830 | if (csk->advmss > pmtu - 40) | 830 | if (csk->advmss > pmtu - 40) |
831 | csk->advmss = pmtu - 40; | 831 | csk->advmss = pmtu - 40; |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 0ed7a66cdded..501f67bef719 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -1636,9 +1636,8 @@ struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost, | |||
1636 | 1636 | ||
1637 | blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); | 1637 | blk_queue_max_segment_size(q, dma_get_max_seg_size(dev)); |
1638 | 1638 | ||
1639 | /* New queue, no concurrency on queue_flags */ | ||
1640 | if (!shost->use_clustering) | 1639 | if (!shost->use_clustering) |
1641 | queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); | 1640 | q->limits.cluster = 0; |
1642 | 1641 | ||
1643 | /* | 1642 | /* |
1644 | * set a reasonable default alignment on word boundaries: the | 1643 | * set a reasonable default alignment on word boundaries: the |