[RFC] [PATCH] Potential bug fix for blk_tag_queue

Abhijeet Joglekar
2008-08-26T01:54:32Z

The following patch fixes a potential bug in the blk_tag_queue structure.
"busy" is used to keep track of outstanding tags, is declared as int,
and updated inside queue lock. For host-wide shared tag map, this corrupts
the value of busy, which hits BUG_ON during __blk_free_tags.

Recommend converting busy to atomic_t and using atomic_macros to access it.

---

Abhijeet Joglekar (1):
blk-tag: Use atomic_t type for bqt->busy.

block/blk-tag.c | 8 ++++----
include/linux/blkdev.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)

--
Signature