]> git.baikalelectronics.ru Git - kernel.git/commit
skd: Remove useless barrier() calls
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:12:57 +0000 (13:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commit8812e79bd78137c266e50accddc6daacb37a722d
treeb1bf8e429eaf3ea873839cd27baed0d6dd52fae3
parent466e9600b1de0f928df931cddbe5356155f8c8bd
skd: Remove useless barrier() calls

The purpose of barrier() is to prevent reordering by the compiler.
Since the compiler does not reorder calls to non-pure functions,
remove the barrier() calls from skd_reg_{read,write}{32,64}().

Since pr_debug() is able to report file name and line number
information, remove __FILE__ and __LINE__ from the pr_debug() calls.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c