Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5575
b: refs/heads/master
c: 43f2f3d
h: refs/heads/master
i:
  5573: d6af579
  5571: cc12700
  5567: c22937a
v: v3
  • Loading branch information
Mark Haverkamp authored and Linus Torvalds committed Aug 2, 2005
1 parent 16ad571 commit 2c73feb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: 2757a71c3122c7653e3dd8077ad6ca71efb1d450
refs/heads/master: 43f2f3d343f9d00a94a9242547a59d9dfb2338c4
6 changes: 1 addition & 5 deletions trunk/drivers/scsi/aacraid/aacraid.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
#define AAC_MAX_LUN (8)

#define AAC_MAX_HOSTPHYSMEMPAGES (0xfffff)
/*
* max_sectors is an unsigned short, otherwise limit is 0x100000000 / 512
* Linux has starvation problems if we permit larger than 4MB I/O ...
*/
#define AAC_MAX_32BIT_SGBCOUNT ((unsigned short)8192)
#define AAC_MAX_32BIT_SGBCOUNT ((unsigned short)512)

/*
* These macros convert from physical channels to virtual channels
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/aacraid/linit.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ static int aac_slave_configure(struct scsi_device *sdev)
else
scsi_adjust_queue_depth(sdev, 0, 1);

if (host->max_sectors < AAC_MAX_32BIT_SGBCOUNT)
if (!(((struct aac_dev *)host->hostdata)->adapter_info.options
& AAC_OPT_NEW_COMM))
blk_queue_max_segment_size(sdev->request_queue, 65536);

return 0;
Expand Down

0 comments on commit 2c73feb

Please sign in to comment.