Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77017
b: refs/heads/master
c: 8ee2402
h: refs/heads/master
i:
  77015: faf3e99
v: v3
  • Loading branch information
Darrick J. Wong authored and James Bottomley committed Jan 12, 2008
1 parent 30a131c commit 94bf1ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5929faf3334f4c69f3bb02be59d7c127e0cefa1f
refs/heads/master: 8ee24023ef43c77cdaea1add00e1e45cc4fc3261
6 changes: 5 additions & 1 deletion trunk/drivers/scsi/libsas/sas_scsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ int sas_queue_up(struct sas_task *task)
*/
int sas_queuecommand(struct scsi_cmnd *cmd,
void (*scsi_done)(struct scsi_cmnd *))
__releases(host->host_lock)
__acquires(dev->sata_dev.ap->lock)
__releases(dev->sata_dev.ap->lock)
__acquires(host->host_lock)
{
int res = 0;
struct domain_device *dev = cmd_to_domain_dev(cmd);
Expand Down Expand Up @@ -410,7 +414,7 @@ static int sas_recover_I_T(struct domain_device *dev)
}

/* Find the sas_phy that's attached to this device */
struct sas_phy *find_local_sas_phy(struct domain_device *dev)
static struct sas_phy *find_local_sas_phy(struct domain_device *dev)
{
struct domain_device *pdev = dev->parent;
struct ex_phy *exphy = NULL;
Expand Down
4 changes: 1 addition & 3 deletions trunk/include/scsi/libsas.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ struct sas_task {
struct work_struct abort_work;
};


extern struct kmem_cache *sas_task_cache;

#define SAS_TASK_STATE_PENDING 1
#define SAS_TASK_STATE_DONE 2
Expand All @@ -573,7 +573,6 @@ struct sas_task {

static inline struct sas_task *sas_alloc_task(gfp_t flags)
{
extern struct kmem_cache *sas_task_cache;
struct sas_task *task = kmem_cache_zalloc(sas_task_cache, flags);

if (task) {
Expand All @@ -590,7 +589,6 @@ static inline struct sas_task *sas_alloc_task(gfp_t flags)
static inline void sas_free_task(struct sas_task *task)
{
if (task) {
extern struct kmem_cache *sas_task_cache;
BUG_ON(!list_empty(&task->list));
kmem_cache_free(sas_task_cache, task);
}
Expand Down

0 comments on commit 94bf1ac

Please sign in to comment.