History

Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fix from James Bottomley: "One final fix before 4.8. There was a memory leak triggered by turning scsi mq off due to the fact that we assume on host release that the already running hosts weren't mq based because that's the state of the global flag (even though they were). Fix it by tracking this on a per host host basis" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: Avoid that toggling use_blk_mq triggers a memory leak

Linus Torvalds committed 10 years ago

Commit f51fdff2 parents 2161a2a 539294b4 files · +4 −5Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/scsi/scsi_host.h+1−4
@@ -771,12 +771,9 @@ static inline int scsi_host_in_recovery(struct Scsi_Host *shost) · 770 unmodified lines
771 shost->tmf_in_progress;771 shost->tmf_in_progress;
772}772}
773 773
774extern bool scsi_use_blk_mq;
775
776static inline bool shost_use_blk_mq(struct Scsi_Host *shost)774static inline bool shost_use_blk_mq(struct Scsi_Host *shost)
777{775{
778 return scsi_use_blk_mq;776 return shost->use_blk_mq;
779
780}777}
781 778
782extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *);779extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t