Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292973
b: refs/heads/master
c: 8973039
h: refs/heads/master
i:
  292971: 939023a
v: v3
  • Loading branch information
Martin K. Petersen authored and James Bottomley committed Feb 19, 2012
1 parent ff05b99 commit 04f5903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 66a651aa7a48b7c6181aff556937454c87bb9feb
refs/heads/master: 89730393f260aef7fce9f6fd475da148517a4c5c
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ static void sd_config_discard(struct scsi_disk *sdkp, unsigned int mode)
max(sdkp->physical_block_size,
sdkp->unmap_granularity * logical_block_size);

sdkp->provisioning_mode = mode;

switch (mode) {

case SD_LBP_DISABLE:
Expand Down Expand Up @@ -524,8 +526,6 @@ static void sd_config_discard(struct scsi_disk *sdkp, unsigned int mode)

q->limits.max_discard_sectors = max_blocks * (logical_block_size >> 9);
queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, q);

sdkp->provisioning_mode = mode;
}

/**
Expand Down

0 comments on commit 04f5903

Please sign in to comment.