Skip to content

Commit 211c8d4

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: (59 commits) [SCSI] replace __FUNCTION__ with __func__ [SCSI] extend the last_sector_bug flag to cover more sectors [SCSI] qla2xxx: Update version number to 8.02.01-k6. [SCSI] qla2xxx: Additional NPIV corrections. [SCSI] qla2xxx: suppress uninitialized-var warning [SCSI] qla2xxx: use memory_read_from_buffer() [SCSI] qla2xxx: Issue proper ISP callbacks during stop-firmware. [SCSI] ch: fix ch_remove oops [SCSI] 3w-9xxx: add MSI support and misc fixes [SCSI] scsi_lib: use blk_rq_tagged in scsi_request_fn [SCSI] ibmvfc: Update driver version to 1.0.1 [SCSI] ibmvfc: Add ADISC support [SCSI] ibmvfc: Miscellaneous fixes [SCSI] ibmvfc: Fix hang on module removal [SCSI] ibmvfc: Target refcounting fixes [SCSI] ibmvfc: Reduce unnecessary log noise [SCSI] sym53c8xx: free luntbl in sym_hcb_free [SCSI] scsi_scan.c: Release mutex in error handling code [SCSI] scsi_eh_prep_cmnd should save scmd->underflow [SCSI] sd: Support for SCSI disk (SBC) Data Integrity Field ...
2 parents 7a82323 + cadbd4a commit 211c8d4

91 files changed

Lines changed: 3945 additions & 1028 deletions

Some content is hidden

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

‎drivers/md/dm-mpath.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,12 @@ static struct priority_group *alloc_priority_group(void)
147147
static void free_pgpaths(struct list_head *pgpaths, struct dm_target *ti)
148148
{
149149
struct pgpath *pgpath, *tmp;
150+
struct multipath *m = ti->private;
150151

151152
list_for_each_entry_safe(pgpath, tmp, pgpaths, list) {
152153
list_del(&pgpath->list);
154+
if (m->hw_handler_name)
155+
scsi_dh_detach(bdev_get_queue(pgpath->path.dev->bdev));
153156
dm_put_device(ti, pgpath->path.dev);
154157
free_pgpath(pgpath);
155158
}
@@ -548,6 +551,7 @@ static struct pgpath *parse_path(struct arg_set *as, struct path_selector *ps,
548551
{
549552
int r;
550553
struct pgpath *p;
554+
struct multipath *m = ti->private;
551555

552556
/* we need at least a path arg */
553557
if (as->argc < 1) {
@@ -566,6 +570,15 @@ static struct pgpath *parse_path(struct arg_set *as, struct path_selector *ps,
566570
goto bad;
567571
}
568572

573+
if (m->hw_handler_name) {
574+
r = scsi_dh_attach(bdev_get_queue(p->path.dev->bdev),
575+
m->hw_handler_name);
576+
if (r < 0) {
577+
dm_put_device(ti, p->path.dev);
578+
goto bad;
579+
}
580+
}
581+
569582
r = ps->type->add_path(ps, &p->path, as->argc, as->argv, &ti->error);
570583
if (r) {
571584
dm_put_device(ti, p->path.dev);

‎drivers/message/fusion/mptbase.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,12 @@ mpt_fault_reset_work(struct work_struct *work)
273273
ioc_raw_state = mpt_GetIocState(ioc, 0);
274274
if ((ioc_raw_state & MPI_IOC_STATE_MASK) == MPI_IOC_STATE_FAULT) {
275275
printk(MYIOC_s_WARN_FMT "IOC is in FAULT state (%04xh)!!!\n",
276-
ioc->name, ioc_raw_state & MPI_DOORBELL_DATA_MASK);
276+
ioc->name, ioc_raw_state & MPI_DOORBELL_DATA_MASK);
277277
printk(MYIOC_s_WARN_FMT "Issuing HardReset from %s!!\n",
278-
ioc->name, __FUNCTION__);
278+
ioc->name, __func__);
279279
rc = mpt_HardResetHandler(ioc, CAN_SLEEP);
280280
printk(MYIOC_s_WARN_FMT "%s: HardReset: %s\n", ioc->name,
281-
__FUNCTION__, (rc == 0) ? "success" : "failed");
281+
__func__, (rc == 0) ? "success" : "failed");
282282
ioc_raw_state = mpt_GetIocState(ioc, 0);
283283
if ((ioc_raw_state & MPI_IOC_STATE_MASK) == MPI_IOC_STATE_FAULT)
284284
printk(MYIOC_s_WARN_FMT "IOC is in FAULT state after "
@@ -356,7 +356,7 @@ mpt_turbo_reply(MPT_ADAPTER *ioc, u32 pa)
356356
if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS ||
357357
MptCallbacks[cb_idx] == NULL) {
358358
printk(MYIOC_s_WARN_FMT "%s: Invalid cb_idx (%d)!\n",
359-
__FUNCTION__, ioc->name, cb_idx);
359+
__func__, ioc->name, cb_idx);
360360
goto out;
361361
}
362362

@@ -420,7 +420,7 @@ mpt_reply(MPT_ADAPTER *ioc, u32 pa)
420420
if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS ||
421421
MptCallbacks[cb_idx] == NULL) {
422422
printk(MYIOC_s_WARN_FMT "%s: Invalid cb_idx (%d)!\n",
423-
__FUNCTION__, ioc->name, cb_idx);
423+
__func__, ioc->name, cb_idx);
424424
freeme = 0;
425425
goto out;
426426
}
@@ -2434,7 +2434,7 @@ mpt_adapter_disable(MPT_ADAPTER *ioc)
24342434

24352435
if (ioc->cached_fw != NULL) {
24362436
ddlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: Pushing FW onto "
2437-
"adapter\n", __FUNCTION__, ioc->name));
2437+
"adapter\n", __func__, ioc->name));
24382438
if ((ret = mpt_downloadboot(ioc, (MpiFwHeader_t *)
24392439
ioc->cached_fw, CAN_SLEEP)) < 0) {
24402440
printk(MYIOC_s_WARN_FMT
@@ -3693,7 +3693,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag)
36933693

36943694
if (ioc->pcidev->device == MPI_MANUFACTPAGE_DEVID_SAS1078) {
36953695
drsprintk(ioc, printk(MYIOC_s_WARN_FMT "%s: Doorbell=%p; 1078 reset "
3696-
"address=%p\n", ioc->name, __FUNCTION__,
3696+
"address=%p\n", ioc->name, __func__,
36973697
&ioc->chip->Doorbell, &ioc->chip->Reset_1078));
36983698
CHIPREG_WRITE32(&ioc->chip->Reset_1078, 0x07);
36993699
if (sleepFlag == CAN_SLEEP)
@@ -4742,12 +4742,12 @@ mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode)
47424742
break;
47434743
}
47444744

4745-
printk("%s: persist_opcode=%x\n",__FUNCTION__, persist_opcode);
4745+
printk("%s: persist_opcode=%x\n",__func__, persist_opcode);
47464746

47474747
/* Get a MF for this command.
47484748
*/
47494749
if ((mf = mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) {
4750-
printk("%s: no msg frames!\n",__FUNCTION__);
4750+
printk("%s: no msg frames!\n",__func__);
47514751
return -1;
47524752
}
47534753

@@ -4771,13 +4771,13 @@ mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode)
47714771
(SasIoUnitControlReply_t *)ioc->persist_reply_frame;
47724772
if (le16_to_cpu(sasIoUnitCntrReply->IOCStatus) != MPI_IOCSTATUS_SUCCESS) {
47734773
printk("%s: IOCStatus=0x%X IOCLogInfo=0x%X\n",
4774-
__FUNCTION__,
4774+
__func__,
47754775
sasIoUnitCntrReply->IOCStatus,
47764776
sasIoUnitCntrReply->IOCLogInfo);
47774777
return -1;
47784778
}
47794779

4780-
printk("%s: success\n",__FUNCTION__);
4780+
printk("%s: success\n",__func__);
47814781
return 0;
47824782
}
47834783

@@ -5784,7 +5784,7 @@ SendEventAck(MPT_ADAPTER *ioc, EventNotificationReply_t *evnp)
57845784

57855785
if ((pAck = (EventAck_t *) mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) {
57865786
dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames!!\n",
5787-
ioc->name,__FUNCTION__));
5787+
ioc->name,__func__));
57885788
return -1;
57895789
}
57905790

‎drivers/message/fusion/mptctl.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ mptctl_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply)
505505
event = le32_to_cpu(pEvReply->Event) & 0xFF;
506506

507507
dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s() called\n",
508-
ioc->name, __FUNCTION__));
508+
ioc->name, __func__));
509509
if(async_queue == NULL)
510510
return 1;
511511

@@ -2482,7 +2482,7 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size)
24822482
*/
24832483
if ((mf = mpt_get_msg_frame(mptctl_id, ioc)) == NULL) {
24842484
dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames!!\n",
2485-
ioc->name,__FUNCTION__));
2485+
ioc->name,__func__));
24862486
goto out;
24872487
}
24882488

‎drivers/message/fusion/mptfc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,28 +231,28 @@ static int
231231
mptfc_abort(struct scsi_cmnd *SCpnt)
232232
{
233233
return
234-
mptfc_block_error_handler(SCpnt, mptscsih_abort, __FUNCTION__);
234+
mptfc_block_error_handler(SCpnt, mptscsih_abort, __func__);
235235
}
236236

237237
static int
238238
mptfc_dev_reset(struct scsi_cmnd *SCpnt)
239239
{
240240
return
241-
mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __FUNCTION__);
241+
mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __func__);
242242
}
243243

244244
static int
245245
mptfc_bus_reset(struct scsi_cmnd *SCpnt)
246246
{
247247
return
248-
mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __FUNCTION__);
248+
mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__);
249249
}
250250

251251
static int
252252
mptfc_host_reset(struct scsi_cmnd *SCpnt)
253253
{
254254
return
255-
mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __FUNCTION__);
255+
mptfc_block_error_handler(SCpnt, mptscsih_host_reset, __func__);
256256
}
257257

258258
static void

‎drivers/message/fusion/mptlan.c‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ mpt_lan_send_turbo(struct net_device *dev, u32 tmsg)
610610

611611
dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n",
612612
IOC_AND_NETDEV_NAMES_s_s(dev),
613-
__FUNCTION__, sent));
613+
__func__, sent));
614614

615615
priv->SendCtl[ctx].skb = NULL;
616616
pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma,
@@ -676,7 +676,7 @@ mpt_lan_send_reply(struct net_device *dev, LANSendReply_t *pSendRep)
676676

677677
dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, skb %p sent.\n",
678678
IOC_AND_NETDEV_NAMES_s_s(dev),
679-
__FUNCTION__, sent));
679+
__func__, sent));
680680

681681
priv->SendCtl[ctx].skb = NULL;
682682
pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma,
@@ -715,15 +715,15 @@ mpt_lan_sdu_send (struct sk_buff *skb, struct net_device *dev)
715715
u16 cur_naa = 0x1000;
716716

717717
dioprintk((KERN_INFO MYNAM ": %s called, skb_addr = %p\n",
718-
__FUNCTION__, skb));
718+
__func__, skb));
719719

720720
spin_lock_irqsave(&priv->txfidx_lock, flags);
721721
if (priv->mpt_txfidx_tail < 0) {
722722
netif_stop_queue(dev);
723723
spin_unlock_irqrestore(&priv->txfidx_lock, flags);
724724

725725
printk (KERN_ERR "%s: no tx context available: %u\n",
726-
__FUNCTION__, priv->mpt_txfidx_tail);
726+
__func__, priv->mpt_txfidx_tail);
727727
return 1;
728728
}
729729

@@ -733,7 +733,7 @@ mpt_lan_sdu_send (struct sk_buff *skb, struct net_device *dev)
733733
spin_unlock_irqrestore(&priv->txfidx_lock, flags);
734734

735735
printk (KERN_ERR "%s: Unable to alloc request frame\n",
736-
__FUNCTION__);
736+
__func__);
737737
return 1;
738738
}
739739

@@ -1208,7 +1208,7 @@ mpt_lan_post_receive_buckets(struct mpt_lan_priv *priv)
12081208

12091209
dioprintk((KERN_INFO MYNAM ": %s/%s: @%s, Start_buckets = %u, buckets_out = %u\n",
12101210
IOC_AND_NETDEV_NAMES_s_s(dev),
1211-
__FUNCTION__, buckets, curr));
1211+
__func__, buckets, curr));
12121212

12131213
max = (mpt_dev->req_sz - MPT_LAN_RECEIVE_POST_REQUEST_SIZE) /
12141214
(MPT_LAN_TRANSACTION32_SIZE + sizeof(SGESimple64_t));
@@ -1217,9 +1217,9 @@ mpt_lan_post_receive_buckets(struct mpt_lan_priv *priv)
12171217
mf = mpt_get_msg_frame(LanCtx, mpt_dev);
12181218
if (mf == NULL) {
12191219
printk (KERN_ERR "%s: Unable to alloc request frame\n",
1220-
__FUNCTION__);
1220+
__func__);
12211221
dioprintk((KERN_ERR "%s: %u buckets remaining\n",
1222-
__FUNCTION__, buckets));
1222+
__func__, buckets));
12231223
goto out;
12241224
}
12251225
pRecvReq = (LANReceivePostRequest_t *) mf;
@@ -1244,7 +1244,7 @@ mpt_lan_post_receive_buckets(struct mpt_lan_priv *priv)
12441244
spin_lock_irqsave(&priv->rxfidx_lock, flags);
12451245
if (priv->mpt_rxfidx_tail < 0) {
12461246
printk (KERN_ERR "%s: Can't alloc context\n",
1247-
__FUNCTION__);
1247+
__func__);
12481248
spin_unlock_irqrestore(&priv->rxfidx_lock,
12491249
flags);
12501250
break;
@@ -1267,7 +1267,7 @@ mpt_lan_post_receive_buckets(struct mpt_lan_priv *priv)
12671267
if (skb == NULL) {
12681268
printk (KERN_WARNING
12691269
MYNAM "/%s: Can't alloc skb\n",
1270-
__FUNCTION__);
1270+
__func__);
12711271
priv->mpt_rxfidx[++priv->mpt_rxfidx_tail] = ctx;
12721272
spin_unlock_irqrestore(&priv->rxfidx_lock, flags);
12731273
break;
@@ -1305,7 +1305,7 @@ mpt_lan_post_receive_buckets(struct mpt_lan_priv *priv)
13051305

13061306
if (pSimple == NULL) {
13071307
/**/ printk (KERN_WARNING MYNAM "/%s: No buckets posted\n",
1308-
/**/ __FUNCTION__);
1308+
/**/ __func__);
13091309
mpt_free_msg_frame(mpt_dev, mf);
13101310
goto out;
13111311
}
@@ -1329,9 +1329,9 @@ mpt_lan_post_receive_buckets(struct mpt_lan_priv *priv)
13291329

13301330
out:
13311331
dioprintk((KERN_INFO MYNAM "/%s: End_buckets = %u, priv->buckets_out = %u\n",
1332-
__FUNCTION__, buckets, atomic_read(&priv->buckets_out)));
1332+
__func__, buckets, atomic_read(&priv->buckets_out)));
13331333
dioprintk((KERN_INFO MYNAM "/%s: Posted %u buckets and received %u back\n",
1334-
__FUNCTION__, priv->total_posted, priv->total_received));
1334+
__func__, priv->total_posted, priv->total_received));
13351335

13361336
clear_bit(0, &priv->post_buckets_active);
13371337
}

0 commit comments

Comments
 (0)